X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fdorestad-bookings.git;a=blobdiff_plain;f=urls.py;h=e3a1d5c536576e115a035203f8ef802e03e27e24;hp=3770765e7206dd777cadc24247c6672778d43d11;hb=9f975ac055023a8f483b2dfeae36f75c04e50f5f;hpb=3edc238e516029eec37ca84c53a59f7a958aa482 diff --git a/urls.py b/urls.py index 3770765..e3a1d5c 100644 --- a/urls.py +++ b/urls.py @@ -1,8 +1,7 @@ from django.conf.urls.defaults import * -# Uncomment the next two lines to enable the admin: -# from django.contrib import admin -# admin.autodiscover() +from django.contrib import admin +admin.autodiscover() urlpatterns = patterns('', (r'^reserveren/$', 'dorestad-bookings.tickets.views.book'), @@ -13,8 +12,8 @@ urlpatterns = patterns('', # to INSTALLED_APPS to enable admin documentation: # (r'^admin/doc/', include('django.contrib.admindocs.urls')), - # Uncomment the next line to enable the admin: - # (r'^admin/(.*)', admin.site.root), + # Enable the auto admin interface + (r'^admin/(.*)', admin.site.root), url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'tickets/login.html'}, name='login'), url(r'^logout/$', 'django.contrib.auth.views.logout_then_login', name='logout'), )