X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fdorestad-bookings.git;a=blobdiff_plain;f=urls.py;h=4c9da01bd77fb6dd26c9e628252713c2936e1314;hp=b79f80222f8b0cb5e92af6d1dd5fe3d3d052ba25;hb=HEAD;hpb=37d43b093440f95a300477746154c09fcff12eeb diff --git a/urls.py b/urls.py index b79f802..4c9da01 100644 --- a/urls.py +++ b/urls.py @@ -1,11 +1,12 @@ 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'), + url(r'^betalingen/$', 'dorestad-bookings.tickets.views.payments', name='payments'), + url(r'^overzicht/$', 'dorestad-bookings.tickets.views.bookings', name='bookings'), # Example: # (r'^dorestad1493/', include('dorestad1493.foo.urls')), @@ -13,6 +14,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'), )