Closed shimniok closed 5 years ago
After creating __init__.py, issuing flask run, website gives 404 error
__init__.py
flask run
$ flask run * Serving Flask app "app.py" (lazy loading) * Environment: development * Debug mode: on * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) * Restarting with stat * Debugger is active! * Debugger PIN: 713-868-903 127.0.0.1 - - [26/Sep/2019 09:14:10] "GET / HTTP/1.1" 404 -
App isn't recognizing routes in routes.py because it is never imported and the blueprint object bp is never registered (as it is in the example code).
After creating
__init__.py
, issuingflask run
, website gives 404 errorApp isn't recognizing routes in routes.py because it is never imported and the blueprint object bp is never registered (as it is in the example code).