More cleanup and modernisation

This commit is contained in:
Sam Wenham 2018-04-14 21:37:12 +01:00
parent cedcb0988a
commit cfa888fde6
3 changed files with 4 additions and 4 deletions

View File

@ -257,7 +257,7 @@ def identifycavedircontents(gcavedir):
# perhaps should use the database and have a reload button for it # perhaps should use the database and have a reload button for it
def survexcaveslist(request): def survexcaveslist(request):
cavesdir = os.path.join(settings.SURVEX_DATA, "caves") cavesdir = os.path.join(settings.SURVEX_DATA, "caves")
cavesdircontents = { } #cavesdircontents = { }
onefilecaves = [ ] onefilecaves = [ ]
multifilecaves = [ ] multifilecaves = [ ]

View File

@ -22,7 +22,7 @@ redirect. If you don't use that name, remember to explicitly pass
""" """
from django.conf.urls.defaults import * from django.conf.urls import *
from profiles import views from profiles import views

View File

@ -1,4 +1,4 @@
from django.conf.urls.defaults import * from django.conf.urls import *
from django.conf import settings from django.conf import settings
from core.views import * # flat import from core.views import * # flat import
@ -95,7 +95,7 @@ actualurlpatterns = patterns('',
url(r'^troggle/media-admin/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ADMIN_DIR, 'show_indexes':True}), url(r'^troggle/media-admin/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ADMIN_DIR, 'show_indexes':True}),
(r'^accounts/', include('registration.urls')), (r'^accounts/', include('registration.backends.default.urls')),
(r'^profiles/', include('profiles.urls')), (r'^profiles/', include('profiles.urls')),