settings: Enable the admin interface.
[matthijs/projects/dorestad-bookings.git] / urls.py
diff --git a/urls.py b/urls.py
index 3770765e7206dd777cadc24247c6672778d43d11..e3a1d5c536576e115a035203f8ef802e03e27e24 100644 (file)
--- 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'),
 )