# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
-ADMIN_MEDIA_PREFIX = '/media/'
+ADMIN_MEDIA_PREFIX = '/admin/media/'
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'dd1=%ckg%xhi((eq)^@ri0o62trw-j!3(4bed9#u5)$_h&a!)0'
INSTALLED_APPS = (
'django.contrib.auth',
+ 'django.contrib.contenttypes',
+ 'django.contrib.sessions',
+ 'django.contrib.admin',
'tickets',
)
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'),
# 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'),
)