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'),