authlib / example-oauth2-server

Example for OAuth 2 Server for Authlib.
https://authlib.org/
685 stars 285 forks source link

App not working after fixing issue in #57 #58

Closed shimniok closed 5 years ago

shimniok commented 5 years ago

After creating __init__.py, issuing flask run, website gives 404 error

$ 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).