changed the admin url to django version 1.3 2011
authorParth buch <parth.buch.115@gmail.com>
Thu, 08 Sep 2011 16:41:31 +0530
branch2011
changeset 382 0c66659b4807
parent 381 0a9e3b8f6fee
child 383 7ef2c154a31d
changed the admin url to django version 1.3
project/urls.py
--- a/project/urls.py	Thu Sep 08 16:24:45 2011 +0530
+++ b/project/urls.py	Thu Sep 08 16:41:31 2011 +0530
@@ -18,7 +18,7 @@
 
 # Admin
 urlpatterns = patterns('',
-    (r'^admin/(.*)', admin.site.urls),
+    (r'^admin/', include(admin.site.urls)),
     (r'^comments/', include('django.contrib.comments.urls')),
     (r'^robots\.txt$', include('robots.urls')),
     (r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}),