python


flask.cli.NoAppException: The file/path provided (new_app.py) does not appear to exist


I keep getting this error flask.cli.NoAppException: The file/path provided (new_app.py) does not appear to exist. Please verify the path is correct. If app is not on PYTHONPATH, ensure the extension is .py it goes away after I restart the Flask server.
I am running flask run in the correct directory where my app is. This just started happening after working for 2 weeks. I've read that it could be due to an import error, but I am not finding any modules that are not installed on my virutalenv.
from flask import Flask
app = Flask(__name__)
app.debug=True
Most likely you haven't set the FLASK_APP environment variable.
To run the application you can either use the flask command or
python’s -m switch with Flask. Before you can do that you need to tell
your terminal the application to work with by exporting the FLASK_APP
environment variable:
$ export FLASK_APP=hello.py
$ flask run * Running on http://127.0.0.1:5000/
If you are on Windows you need to use set
instead of export.
Alternatively you can use python -m flask:
$ export FLASK_APP=hello.py
$ python -m flask run * Running on http://127.0.0.1:5000/

Related Links

Munging non-printable characters to dots using string.translate()
Error when using astWCS trying to create WCS object
if there any better way to read bb function souce code.i was very faint
PyQt4 signals and slots
Sql Alchemy What is wrong?
How do I plot a graph in Python?
Reordering matrix elements to reflect column and row clustering in naiive python
making urllib request in Python from the client side
Grid within a frame?
how to create http headers from scratch
Mapping a range of values to another
maya2008 win32api 64 bit python
Python importing modules differently when run interactively/non-interactively
Why do I get this error in this Python code?
what is the correct way to close a socket in python 2.6?
Listing blog entries by year,month

Categories

HOME
sharepoint
crystal-reports
symfony
mql4
elixir
bower
fparsec
puppet
memory-leaks
safari
jrebel
schemacrawler
browserify
docker-windows
avl-tree
constructor
vuex
eclipse-cdt
xamarin-studio
pjsip
ndis
google-shopping
cortex-a
onsen-ui2
uiscrollview
cpanel
gwtp
simple-injector
ida
sendkeys
ssms-2016
alfresco-share
quartus
ada
saiku
aptana
linq-to-sql
styles
apply
sumo
web-frontend
chrome-native-messaging
ggmap
roundcube
vegan
lmdb
clockwork
discord.net
sql-like
ddms
onbackpressed
dojox.mobile
pytest-django
asmx
lirc
timesten
nstouchbar
amazon-machine-learning
broadcast
tiddlywiki
teiid
barcode-printing
atlassian-crowd
chessboard.js
mongoose-populate
contour
date-format
django-south
qt-linguist
xmp
galaxy
loose-typing
datainputstream
function-fitting
base32
rx-groovy
sysctl
libssh2
argument-passing
wss
magic-numbers
opensocial
json-patch
visual-studio-addins
cling
angulartics
ftp4j
mstsc
adomd.net
sharpmap
client-library
android-contextmenu
sametime
returnurl
osi
web-safe-fonts
hibernate3
die
django-nose
posting
server-error
out-of-browser
yajl
openvg
self-reference

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App