forked from orbit-oss/flask
Added EXPLAIN_TEMPLATE_LOADING to help people debug templates not being loaded.
This commit is contained in:
parent
f17ad953dd
commit
bafc139810
11 changed files with 172 additions and 17 deletions
|
|
@ -1,6 +1,7 @@
|
|||
from flask import Flask
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config['DEBUG'] = True
|
||||
from blueprintapp.apps.admin import admin
|
||||
from blueprintapp.apps.frontend import frontend
|
||||
app.register_blueprint(admin)
|
||||
|
|
|
|||
|
|
@ -6,3 +6,8 @@ frontend = Blueprint('frontend', __name__, template_folder='templates')
|
|||
@frontend.route('/')
|
||||
def index():
|
||||
return render_template('frontend/index.html')
|
||||
|
||||
|
||||
@frontend.route('/missing')
|
||||
def missing_template():
|
||||
return render_template('missing_template.html')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue