From 19da112a096e612ac9020b6cce9c9c1f9702a325 Mon Sep 17 00:00:00 2001 From: zrose584 <57181548+zrose584@users.noreply.github.com> Date: Wed, 7 Oct 2020 15:27:56 +0200 Subject: yt_app.config: use 'TEMPLATES_AUTO_RELOAD' --- youtube/__init__.py | 1 + 1 file changed, 1 insertion(+) (limited to 'youtube/__init__.py') diff --git a/youtube/__init__.py b/youtube/__init__.py index 6c2ec48..9038634 100644 --- a/youtube/__init__.py +++ b/youtube/__init__.py @@ -5,6 +5,7 @@ import traceback import re from sys import exc_info yt_app = flask.Flask(__name__) +yt_app.config['TEMPLATES_AUTO_RELOAD'] = True yt_app.url_map.strict_slashes = False -- cgit v1.2.3 From debc11931fe1102f17852fd082d0dac50d477ce9 Mon Sep 17 00:00:00 2001 From: zrose584 <57181548+zrose584@users.noreply.github.com> Date: Wed, 7 Oct 2020 19:03:22 +0200 Subject: add comments.js --- youtube/__init__.py | 1 + 1 file changed, 1 insertion(+) (limited to 'youtube/__init__.py') diff --git a/youtube/__init__.py b/youtube/__init__.py index 6c2ec48..c2ce276 100644 --- a/youtube/__init__.py +++ b/youtube/__init__.py @@ -25,6 +25,7 @@ theme_names = { def inject_theme_preference(): return { 'theme_path': '/youtube.com/static/' + theme_names[settings.theme] + '.css', + 'settings': settings, } @yt_app.template_filter('commatize') -- cgit v1.2.3