diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2024-12-15 18:48:28 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2024-12-15 18:48:28 +0000 |
commit | eb74940ca81a6e900dec2b7c8df00245c6bb9a71 (patch) | |
tree | 37baaeba65b6a4874041eac8ec3a1cefc778eeda /urls.py | |
parent | 5475a0b853e4527b4813cbaabbea88bcc7584843 (diff) | |
download | troggle-eb74940ca81a6e900dec2b7c8df00245c6bb9a71.tar.gz troggle-eb74940ca81a6e900dec2b7c8df00245c6bb9a71.tar.bz2 troggle-eb74940ca81a6e900dec2b7c8df00245c6bb9a71.zip |
ruff config
Diffstat (limited to 'urls.py')
-rw-r--r-- | urls.py | 67 |
1 files changed, 48 insertions, 19 deletions
@@ -1,31 +1,60 @@ from django.conf import settings +from django.conf.urls.static import static 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, caveindex, entranceindex, caveslist, - cavepage, caveslugfwd, caveQMs, edit_cave, cave_debug, - edit_entrance, get_entrances, qm, expo_kml, expo_kmz) +from troggle.core.views.caves import ( + cave3d, + cave_debug, + caveindex, + cavepage, + caveQMs, + caveslist, + caveslugfwd, + edit_cave, + edit_entrance, + entranceindex, + expo_kml, + expo_kmz, + get_entrances, + qm, +) from troggle.core.views.drawings import dwgallfiles, dwgfilesingle from troggle.core.views.editor_helpers import image_selector, new_image_form -from troggle.core.views.expo import (pubspage, indexpage, editexpopage, expofiles_redirect, - expofilessingle, expopage, map, mapfile, - mediapage, spider) -from troggle.core.views.logbooks import (QMs_jsonListView, Expeditions_jsonListView, - Expeditions_tsvListView, expedition, logreport, logentrydelete, - get_logbook_entries, get_people, - logbookentry, notablepersons, person, - personexpedition) -from troggle.core.views.other import (controlpanel, exportlogbook, frontpage, - todos) +from troggle.core.views.expo import ( + editexpopage, + expofiles_redirect, + expofilessingle, + expopage, + indexpage, + map, + mapfile, + mediapage, + pubspage, + spider, +) +from troggle.core.views.logbooks import ( + Expeditions_jsonListView, + Expeditions_tsvListView, + QMs_jsonListView, + expedition, + get_logbook_entries, + get_people, + logbookentry, + logentrydelete, + logreport, + notablepersons, + person, + personexpedition, +) +from troggle.core.views.other import controlpanel, exportlogbook, frontpage, todos from troggle.core.views.prospect import prospecting -from troggle.core.views.scans import (allscans, cavewallets, scansingle, - walletslistperson, walletslistyear) -from troggle.core.views.uploads import dwgupload, photoupload, gpxupload, expofilerename, logbookedit +from troggle.core.views.scans import allscans, cavewallets, scansingle, walletslistperson, walletslistyear +from troggle.core.views.uploads import dwgupload, expofilerename, gpxupload, logbookedit, photoupload from troggle.core.views.wallets_edit import walletedit + """This sets the actualurlpatterns[] and urlpatterns[] lists which django uses to resolve urls - in both directions as these are declarative. @@ -56,7 +85,7 @@ todo = ''' # the first place and what they were intended to provide is obscure. -# WHen running on the server, apache intercepts all teh /expofiles/ files so troggle never sees them, +# WHen running on the server, apache intercepts all the /expofiles/ files so troggle never sees them, # so the "content type" is set by whatever apache thinks it should be. Which means .gpx files # get treated as XML and the web browser fails to do anything usefull |