mirror of
https://github.com/YunoHost-Apps/django-fmd_ynh.git
synced 2024-09-03 18:26:27 +02:00
Bugfix FMD web page and his static files
This commit is contained in:
parent
2c32d3b05a
commit
2a9df751ca
1 changed files with 6 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.conf.urls import static
|
from django.conf.urls import static
|
||||||
from django.urls import include, path
|
from django.urls import include, path
|
||||||
|
from django.views.static import serve
|
||||||
|
|
||||||
|
import findmydevice
|
||||||
|
|
||||||
|
|
||||||
# from django_yunohost_integration.views import request_media_debug_view
|
# from django_yunohost_integration.views import request_media_debug_view
|
||||||
|
@ -20,3 +23,6 @@ else:
|
||||||
# Installed to domain root, without a path prefix
|
# Installed to domain root, without a path prefix
|
||||||
# Just use the default project urls.py
|
# Just use the default project urls.py
|
||||||
from findmydevice_project.urls import urlpatterns # noqa
|
from findmydevice_project.urls import urlpatterns # noqa
|
||||||
|
|
||||||
|
# TODO: Serve from nginx server ;)
|
||||||
|
urlpatterns.append(path('<path:path>', serve, {'document_root': findmydevice.WEB_PATH}))
|
||||||
|
|
Loading…
Reference in a new issue