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.
1 parent 0fbe848 commit 9dfc250Copy full SHA for 9dfc250
1 file changed
examples/sqla/main.py
@@ -5,16 +5,13 @@
5
from admin.data import build_sample_db
6
from flask import redirect
7
from flask import url_for
8
-from jinja2 import StrictUndefined
9
10
app_dir = op.join(op.realpath(os.path.dirname(__file__)), "admin")
11
database_path = op.join(app_dir, app.config["DATABASE_FILE"])
12
if not os.path.exists(database_path):
13
with app.app_context():
14
build_sample_db()
15
16
-app.jinja_env.undefined = StrictUndefined
17
-
18
19
@app.route("/")
20
def index():
0 commit comments