tickets: Expose the ticket price to the bookingform template.
[matthijs/projects/dorestad-bookings.git] / urls.py
diff --git a/urls.py b/urls.py
index b79f80222f8b0cb5e92af6d1dd5fe3d3d052ba25..0eef5e4f1ecf1372b990d96a1e1a96b6fd0a5f80 100644 (file)
--- a/urls.py
+++ b/urls.py
@@ -1,11 +1,11 @@
 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'),
     # Example:
     # (r'^dorestad1493/', include('dorestad1493.foo.urls')),
 
@@ -13,6 +13,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'),
 )