Started from scratch and failed

Issue with register_blueprint
This commit is contained in:
2022-06-11 02:39:47 +01:00
parent 7af588da6c
commit 436c8e0e2d
99 changed files with 210 additions and 5920 deletions

View File

@ -0,0 +1,8 @@
from flask import Flask
from .deeper import t
def create_app():
app = Flask(__name__)
app.register_blueprint(t)
return app

View File

@ -0,0 +1,5 @@
from flask import Blueprint
t = Blueprint(name='test', import_name=__name__)
from . import foo

View File

@ -0,0 +1,5 @@
from . import t
@t.route('/')
def _t():
return 'Test'

5
ref-test/test/test.py Normal file
View File

@ -0,0 +1,5 @@
from subfolder import create_app
app = create_app()
app.run()