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.
2 parents 8c0de1a + f0578aa commit c1ff29cCopy full SHA for c1ff29c
app/main/__init__.py
@@ -1,5 +1,2 @@
1
-from flask import Blueprint
2
-
3
-main = Blueprint('main', __name__)
4
5
-from . import views, errors # noqa
+from app.main import errors # noqa
+from app.main.views import main
app/main/errors.py
@@ -1,6 +1,6 @@
from flask import render_template
-from . import main
+from app.main import main
6
@main.app_errorhandler(403)
app/main/views.py
@@ -1,7 +1,8 @@
-from flask import render_template
+from flask import Blueprint, render_template
-from ..models import EditableHTML
+from app.models import EditableHTML
+
+main = Blueprint('main', __name__)
7
8
@main.route('/')
0 commit comments