2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-05-12 04:15:45 +01: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

@ -2,6 +2,8 @@ from django.conf import settings
from django.contrib import admin from django.contrib import admin
from django.urls import include, path, re_path 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 import statistics, survex
from troggle.core.views.auth import expologin, expologout from troggle.core.views.auth import expologin, expologout
from troggle.core.views.caves import (cave3d, caveEntrance, caveindex, from troggle.core.views.caves import (cave3d, caveEntrance, caveindex,
@ -234,9 +236,10 @@ trogglepatterns = [
] ]
# do NOT allow DIR_ROOT prefix to all urls # 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. # 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 # NB apache has its own ideas about mimetypes, so behaviour may not be identical for .xml files by troggle