From d786c746d9bb5c4af4ab067e83ed30141dfb0514 Mon Sep 17 00:00:00 2001 From: "Marcelo Jorge Vieira (metal" Date: Wed, 22 Oct 2008 15:12:46 -0200 Subject: [PATCH] Added admin autodiscover and updated admin url --- urls.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/urls.py b/urls.py index 8db2b3f..89b3856 100644 --- a/urls.py +++ b/urls.py @@ -22,6 +22,10 @@ from diario.models import Entry from contents.models import Menu, Index from ema.views import get_entry_by_slug +from django.contrib import admin +admin.autodiscover() + + MEDIA = {'document_root': settings.INSTANCE('media')} # the only difference between info_dict and info_dict_full is that the @@ -44,7 +48,7 @@ info_dict_full = { } urlpatterns = patterns('', - (r'^admin/', include('django.contrib.admin.urls')), + (r'^admin/(.*)', admin.site.root), url(regex='^$', view='django.views.generic.list_detail.object_list', -- 2.20.1