summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2023-04-30 18:54:53 +0100
committerMartin Green <martin.speleo@gmail.com>2023-04-30 18:54:53 +0100
commit0a3a6934c407b7df537f97f33855802b72a2c15e (patch)
tree49b95afb571baa3c8bd3a8ad45f91732a8cec346 /urls.py
parented9f7b03bfdff0c7198ee5802a95d704e8deaabe (diff)
downloadtroggle-0a3a6934c407b7df537f97f33855802b72a2c15e.tar.gz
troggle-0a3a6934c407b7df537f97f33855802b72a2c15e.tar.bz2
troggle-0a3a6934c407b7df537f97f33855802b72a2c15e.zip
Added some commented out lines for allowing for local development, where files are server from /usr/share/javascript or expofilescache
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/urls.py b/urls.py
index 88c3578..a5d6c47 100644
--- a/urls.py
+++ b/urls.py
@@ -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