Skip to content

Commit 9bfe1c2

Browse files
committed
Rename variables.
1 parent ee9c797 commit 9bfe1c2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

flask_session_tutorial/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
from flask_session import Session
55
from flask_sqlalchemy import SQLAlchemy
66

7+
from . import main
8+
79
db = SQLAlchemy()
810
login_manager = LoginManager()
911
session = Session()
@@ -20,10 +22,10 @@ def create_app():
2022
session.init_app(app)
2123

2224
with app.app_context():
23-
from . import auth, routes
25+
from . import auth
2426
from .assets import compile_auth_assets, compile_static_assets
2527

26-
app.register_blueprint(routes.main)
28+
app.register_blueprint(main.main)
2729
app.register_blueprint(auth.auth)
2830

2931
# Create static asset bundles
File renamed without changes.

0 commit comments

Comments
 (0)