]> www.vanbest.org Git - motioneye-debian/commitdiff
fixed manifest.json location when using base_path
authorCalin Crisan <ccrisan@gmail.com>
Thu, 24 Nov 2016 15:48:02 +0000 (17:48 +0200)
committerCalin Crisan <ccrisan@gmail.com>
Thu, 24 Nov 2016 15:48:02 +0000 (17:48 +0200)
motioneye/server.py
motioneye/templates/base.html

index 8ae5eb0187bbac8faf865f7724d5a85af442d344..6aded3de166b791e976881315ae30688ce0101a9 100644 (file)
@@ -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/')
index 8386a8508bac893d587c47326d500e5cb9d71c6c..252230de8e7aaed540da008f20aee5841a551e09 100644 (file)
@@ -15,7 +15,7 @@
             <link rel="stylesheet" type="text/css" href="{{static_path}}css/jquery.timepicker.css" />
             <link rel="shortcut icon" href="{{static_path}}favicon.ico" />
             <link rel="apple-touch-icon" href="{{static_path}}favicon.ico" />
-            <link rel="manifest" href="/manifest.json" />
+            <link rel="manifest" href="{{base_path}}manifest.json" />
         {% endblock %}
         {% block script %}
             <script type="text/javascript" src="{{static_path}}js/css-browser-selector.js"></script>