From 2a9df751caaeae4a8955dd877f840962fa0197f1 Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Tue, 19 Jul 2022 21:10:05 +0200 Subject: [PATCH] Bugfix FMD web page and his static files --- conf/urls.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf/urls.py b/conf/urls.py index 2d9ad4c..3b658bc 100644 --- a/conf/urls.py +++ b/conf/urls.py @@ -1,6 +1,9 @@ from django.conf import settings from django.conf.urls import static from django.urls import include, path +from django.views.static import serve + +import findmydevice # from django_yunohost_integration.views import request_media_debug_view @@ -20,3 +23,6 @@ else: # Installed to domain root, without a path prefix # Just use the default project urls.py from findmydevice_project.urls import urlpatterns # noqa + +# TODO: Serve from nginx server ;) +urlpatterns.append(path('', serve, {'document_root': findmydevice.WEB_PATH}))