X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=urls.py;h=c40951e351cd9a220888f0ce4ca1fe3b08c36318;hb=ea6a70fbe7fda3d66d97c5f1677a2dadd80578f9;hp=b79f80222f8b0cb5e92af6d1dd5fe3d3d052ba25;hpb=37d43b093440f95a300477746154c09fcff12eeb;p=matthijs%2Fprojects%2Fdorestad-bookings.git diff --git a/urls.py b/urls.py index b79f802..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,6 +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'), )