From 55b642f3fe94f89cbd6376b3a610924bbd168e06 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Mon, 28 Jul 2008 18:13:45 +0200 Subject: [PATCH] Switch the urlconf to use the new django admin interface. --- urls.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/urls.py b/urls.py index 5b2c6f7..1b4e400 100644 --- a/urls.py +++ b/urls.py @@ -1,12 +1,16 @@ from django.conf import settings from django.conf.urls.defaults import * +from django.contrib import admin from xerxes.influences.models import Character from xerxes.influences.models import Influence import os - + +# Automatically import admin.py from all INSTALLED_APPS +admin.autodiscover() + urlpatterns = patterns('', url(r'^$', 'django.views.generic.simple.redirect_to', {'url' : '/influences/'}), - url(r'^admin/', include('django.contrib.admin.urls')), + (r'^admin/(.*)', admin.site.root), url(r'^comments/', include('threadedcomments.urls')), url(r'^influences/$', 'xerxes.influences.views.index', name='influences_index'), -- 2.30.2