From f6e9ac96161ec1cec7d84093af4b93a837ece0e5 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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/conf/urls.py b/conf/urls.py index 3b658bc..6a6f129 100644 --- a/conf/urls.py +++ b/conf/urls.py @@ -16,6 +16,9 @@ if settings.PATH_URL: # path(f'{settings.PATH_URL}/debug/', request_media_debug_view), path(f'{settings.PATH_URL}/', include('findmydevice_project.urls')), + # + # TODO: Serve from nginx server ;) + path(f'{settings.PATH_URL}/', serve, {'document_root': findmydevice.WEB_PATH}) ] if settings.SERVE_FILES: urlpatterns += static.static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) @@ -24,5 +27,5 @@ else: # 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})) + # TODO: Serve from nginx server ;) + urlpatterns.append(path('', serve, {'document_root': findmydevice.WEB_PATH}))