diff --git a/ref-test/main.py b/ref-test/main.py index 29d0d00..1d328d7 100644 --- a/ref-test/main.py +++ b/ref-test/main.py @@ -8,11 +8,6 @@ from werkzeug.middleware.proxy_fix import ProxyFix from datetime import datetime -from app.admin.views import admin -from app.api.views import api -from app.views import views -from app.quiz.views import quiz - def create_app(): app = Flask(__name__) app.config.from_object(Config()) @@ -39,6 +34,11 @@ def create_app(): def _now(): return {'now': datetime.utcnow()} + from app.admin.views import admin + from app.api.views import api + from app.views import views + from app.quiz.views import quiz + app.register_blueprint(admin, url_prefix='/admin') app.register_blueprint(api, url_prefix='/api') app.register_blueprint(views)