mirror of
https://github.com/FAUSheppy/flask-json-dream-website
synced 2025-12-06 08:11:35 +01:00
CONTENT_DIR must be string
This commit is contained in:
@@ -185,7 +185,7 @@ def content():
|
|||||||
extraConfigDir = app.config[identifier + CONFIG_POSTFIX]
|
extraConfigDir = app.config[identifier + CONFIG_POSTFIX]
|
||||||
extraConfig = None
|
extraConfig = None
|
||||||
if extraConfigDir:
|
if extraConfigDir:
|
||||||
extraConfig = readJsonDir(os.path.join(app.config[CONTENT_DIR], extraConfigDir))
|
extraConfig = readJsonDir(os.path.join(app.config["CONTENT_DIR"], extraConfigDir))
|
||||||
|
|
||||||
markupText = flask.Markup(flask.render_template(app.config[identifier], extraConfig=extraConfig))
|
markupText = flask.Markup(flask.render_template(app.config[identifier], extraConfig=extraConfig))
|
||||||
return flask.render_template("default_content.html", conf=app.config, markupText=markupText)
|
return flask.render_template("default_content.html", conf=app.config, markupText=markupText)
|
||||||
|
|||||||
Reference in New Issue
Block a user