We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee9c797 commit 9bfe1c2Copy full SHA for 9bfe1c2
flask_session_tutorial/__init__.py
@@ -4,6 +4,8 @@
4
from flask_session import Session
5
from flask_sqlalchemy import SQLAlchemy
6
7
+from . import main
8
+
9
db = SQLAlchemy()
10
login_manager = LoginManager()
11
session = Session()
@@ -20,10 +22,10 @@ def create_app():
20
22
session.init_app(app)
21
23
24
with app.app_context():
- from . import auth, routes
25
+ from . import auth
26
from .assets import compile_auth_assets, compile_static_assets
27
- app.register_blueprint(routes.main)
28
+ app.register_blueprint(main.main)
29
app.register_blueprint(auth.auth)
30
31
# Create static asset bundles
flask_session_tutorial/routes.py renamed to flask_session_tutorial/main.py
0 commit comments