Skip to content

Instantly share code, notes, and snippets.

@Porter97
Created March 30, 2020 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Porter97/27bbfd4b3d1d7a01cac22df77d5084e9 to your computer and use it in GitHub Desktop.
Save Porter97/27bbfd4b3d1d7a01cac22df77d5084e9 to your computer and use it in GitHub Desktop.
#...
from .extensions import db, login_manager, toastr
#...
def create_app(config_name):
#...
toastr.init_app(app)
#...
from .auth import auth as auth_blueprint
app.register_blueprint(auth_blueprint, url_prefix='/auth')
return app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment