[PATCH 1/6] Update admin site URL dispatcher to Django 1.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



admin.site.root does not exist under Django 1.3 anymore.
Use, therefore, the current idiom to specify the admin URL.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@xxxxxxxxxx>
---
 frontend/urls.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/frontend/urls.py b/frontend/urls.py
index 7f18fec..5c50f51 100644
--- a/frontend/urls.py
+++ b/frontend/urls.py
@@ -15,7 +15,7 @@ handler500 = 'frontend.afe.views.handler500'
 
 urlpatterns = defaults.patterns(
         '',
-        (RE_PREFIX + r'admin/(.*)', admin.site.root),
+        (RE_PREFIX + r'admin/', defaults.include(admin.site.urls)),
         (RE_PREFIX, defaults.include('frontend.afe.urls')),
         (TKO_RE_PREFIX, defaults.include('frontend.tko.urls')),
         (PLANNER_RE_PREFIX, defaults.include('frontend.planner.urls')),
-- 
1.7.5.2

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux