Trouble with Python Flask Tutorial application -



Trouble with Python Flask Tutorial application -

i trying larn how build applications python flask, , having problem tutorial @ address: http://flask.pocoo.org/docs/tutorial/. followed instructions (folder structure, files, etc.) when run application on command line python, application not run when plug in web address browser. new python help appreciated. going on?

ok, through code. appears simple error:

in flaskr.py, move these 2 lines end of file.

if __name__ == '__main__': app.run()

then works. reason when run python flaskr.py

it goes through file , when reaches 2 lines runs server @ point route '/' not registered. hence gives 404.

python flask

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -