From a719c672f936e780dc086a435188c40f87e24802 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Thu, 24 Nov 2016 17:48:02 +0200 Subject: [PATCH] fixed manifest.json location when using base_path --- motioneye/server.py | 1 + motioneye/templates/base.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/motioneye/server.py b/motioneye/server.py index 8ae5eb0..6aded3d 100644 --- a/motioneye/server.py +++ b/motioneye/server.py @@ -386,6 +386,7 @@ def run(): logging.info('smb mounts started') template.add_context('static_path', settings.BASE_PATH + '/static/') + template.add_context('base_path', settings.BASE_PATH + '/') application = Application(handler_mapping, debug=False, log_function=_log_request, static_path=settings.STATIC_PATH, static_url_prefix='/static/') diff --git a/motioneye/templates/base.html b/motioneye/templates/base.html index 8386a85..252230d 100644 --- a/motioneye/templates/base.html +++ b/motioneye/templates/base.html @@ -15,7 +15,7 @@ - + {% endblock %} {% block script %} -- 2.39.5