diff options
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -43,6 +43,12 @@ def read_blacklist(): with open(app.config['USERNAME_BLACKLIST_FILE']) as f: app.username_blacklist = f.read().split('\n') +@app.context_processor +def template_default_context(): + return { + 'app': app + } + @app.route('/', methods=['GET', 'POST']) @templated('index.html') |