More cleanup and modernisation

This commit is contained in:
Sam Wenham 2018-04-14 21:37:12 +01:00
parent 1974d0758a
commit 3fd805e26c
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
def survexcaveslist(request):
cavesdir = os.path.join(settings.SURVEX_DATA, "caves")
cavesdircontents = { }
#cavesdircontents = { }
onefilecaves = [ ]
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

View File

@ -1,4 +1,4 @@
from django.conf.urls.defaults import *
from django.conf.urls import *
from django.conf import settings
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}),
(r'^accounts/', include('registration.urls')),
(r'^accounts/', include('registration.backends.default.urls')),
(r'^profiles/', include('profiles.urls')),