Skip to content

Commit c1ff29c

Browse files
committed
Merge branch 'refactor_main_blueprint' into refactor_admin_blueprint
2 parents 8c0de1a + f0578aa commit c1ff29c

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

app/main/__init__.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
from flask import Blueprint
2-
3-
main = Blueprint('main', __name__)
4-
5-
from . import views, errors # noqa
1+
from app.main import errors # noqa
2+
from app.main.views import main

app/main/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from flask import render_template
22

3-
from . import main
3+
from app.main import main
44

55

66
@main.app_errorhandler(403)

app/main/views.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
from flask import render_template
1+
from flask import Blueprint, render_template
22

3-
from . import main
4-
from ..models import EditableHTML
3+
from app.models import EditableHTML
4+
5+
main = Blueprint('main', __name__)
56

67

78
@main.route('/')

0 commit comments

Comments
 (0)