Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9bfe1c2

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /