X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=urls.py;h=c40951e351cd9a220888f0ce4ca1fe3b08c36318;hb=d9d138c4840dc10d606f3ca02176badbd8ae2161;hp=3770765e7206dd777cadc24247c6672778d43d11;hpb=4d05f907d6e6ab93c5427a3b86461bc2e20aaa07;p=matthijs%2Fprojects%2Fdorestad-bookings.git diff --git a/urls.py b/urls.py index 3770765..c40951e 100644 --- a/urls.py +++ b/urls.py @@ -1,11 +1,10 @@ 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'), + (r'^$', 'dorestad-bookings.tickets.views.book'), # Example: # (r'^dorestad1493/', include('dorestad1493.foo.urls')), @@ -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'), )