summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-03-05 18:20:18 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2023-03-05 18:20:18 +0000
commit4a2106183a2351321d780615e42abddc08874b3b (patch)
treed1f8cc9cc2ceb22048f42c7a8f9babb75f25e99e /urls.py
parent06ac840dd077e38d6158411884524fbfd10c03bd (diff)
downloadtroggle-4a2106183a2351321d780615e42abddc08874b3b.tar.gz
troggle-4a2106183a2351321d780615e42abddc08874b3b.tar.bz2
troggle-4a2106183a2351321d780615e42abddc08874b3b.zip
Bugfix for new survex file
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/urls.py b/urls.py
index 88969a8..a32f2e1 100644
--- a/urls.py
+++ b/urls.py
@@ -79,6 +79,10 @@ else:
# BUT many of these are set up by opinionated Django even if 'django.contrib.auth.urls' is NOT included.
# Some overlap with 'admin.site.urls' needs to be investigated.
+# admin.site.urls is urls() which maps to get_urls() which is a function declared
+# in django/contrib/admin/sites.py which for me is
+# /home/philip/p11d5/lib/python3.11/site-packages/django/contrib/admin/sites.py
+
trogglepatterns = [
path('expofiles/', include(expofilesurls)), # intercepted by Apache, if it is running.
path('expofiles', include(expofilesurls)), # curious interaction with the include() here, not just a slash problem.
@@ -90,7 +94,7 @@ trogglepatterns = [
re_path(r'^people/?$', notablepersons, name="notablepersons"),
re_path(r'^admin/doc/', include('django.contrib.admindocs.urls')), # needs docutils Python module (http://docutils.sf.net/).
- re_path(r'^admin/', admin.site.urls), # includes admin login & logout urls
+ re_path(r'^admin/', admin.site.urls), # includes admin login & logout urls & /admin/jsi18n/
# Uploads - uploading a file
path('walletedit/', walletedit, name='walletedit'),