2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 08:41:51 +00:00

Added some commented out lines for allowing for local development, where files are server from /usr/share/javascript or expofilescache

This commit is contained in:
Martin Green 2023-04-30 18:54:53 +01:00
parent ed9f7b03bf
commit 0a3a6934c4

View File

@ -2,6 +2,8 @@ from django.conf import settings
from django.contrib import admin
from django.urls import include, path, re_path
from django.conf.urls.static import static
from troggle.core.views import statistics, survex
from troggle.core.views.auth import expologin, expologout
from troggle.core.views.caves import (cave3d, caveEntrance, caveindex,
@ -234,9 +236,10 @@ trogglepatterns = [
]
# do NOT allow DIR_ROOT prefix to all urls
urlpatterns = [
re_path('', include(trogglepatterns))
]
#urlpatterns = static(settings.JSLIB_URL, document_root=settings.JSLIB_ROOT) #For development purposes, in production this should be served statically perhaps from /usr/share/javascript
#urlpatterns += static(settings.EXPOWEBCACHE_URL, document_root=settings.EXPOWEBCACHE_ROOT) #For development purposes, in production this should be served statically
urlpatterns = [re_path('', include(trogglepatterns))]
# When apache is running these prempt Django so Django never sees them.
# NB apache has its own ideas about mimetypes, so behaviour may not be identical for .xml files by troggle