From 6fd32408c6002e55920cf4fe819f049a28a99f0e Mon Sep 17 00:00:00 2001 From: Mike Elser Date: Thu, 4 May 2017 09:05:14 -0700 Subject: [PATCH] Changed CSS/JS to local static files --- management/daemon.py | 1 + management/templates/index.html | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/management/daemon.py b/management/daemon.py index 3c712303..b8a23043 100755 --- a/management/daemon.py +++ b/management/daemon.py @@ -32,6 +32,7 @@ with open(os.path.join(os.path.dirname(me), "csr_country_codes.tsv")) as f: csr_country_codes.append((code, name)) app = Flask(__name__, template_folder=os.path.abspath(os.path.join(os.path.dirname(me), "templates"))) +app._static_folder = os.path.abspath(os.path.join(os.path.dirname(me), "static")) # Decorator to protect views that require a user with 'admin' privileges. def authorized_personnel_only(viewfunc): diff --git a/management/templates/index.html b/management/templates/index.html index dd08f111..05e2e758 100644 --- a/management/templates/index.html +++ b/management/templates/index.html @@ -9,7 +9,7 @@ - + - + @@ -191,8 +191,8 @@ - - + +