1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/django-fmd_ynh.git synced 2024-09-03 18:26:27 +02:00

Merge pull request #14 from YunoHost-Apps/update

Bugfix FMD web page and his static files
This commit is contained in:
Jens Diemer 2022-07-19 21:26:16 +02:00 committed by GitHub
commit b2e4dafcf5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}/<path:path>', 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('<path:path>', serve, {'document_root': findmydevice.WEB_PATH}))
# TODO: Serve from nginx server ;)
urlpatterns.append(path('<path:path>', serve, {'document_root': findmydevice.WEB_PATH}))