From 4a2106183a2351321d780615e42abddc08874b3b Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 5 Mar 2023 18:20:18 +0000 Subject: Bugfix for new survex file --- urls.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'urls.py') 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'), -- cgit v1.2.3