added admin urls
authorNishanth Amuluru <nishanth@fossee.in>
Fri, 07 Jan 2011 11:53:11 +0530
changeset 272 ee00b42e802f
parent 271 485b24cc439b
child 273 8318df7e2d52
added admin urls
urls.py
--- a/urls.py	Fri Jan 07 11:48:33 2011 +0530
+++ b/urls.py	Fri Jan 07 11:53:11 2011 +0530
@@ -6,8 +6,8 @@
 from django.shortcuts import redirect
 
 # Uncomment the next two lines to enable the admin:
-# from django.contrib import admin
-# admin.autodiscover()
+from django.contrib import admin
+admin.autodiscover()
 
 urlpatterns = patterns('',
     # Example:
@@ -17,7 +17,7 @@
     # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
 
     # Uncomment the next line to enable the admin:
-    # (r'^admin/', include(admin.site.urls)),
+    (r'^admin/', include(admin.site.urls)),
 
     url(r'^accounts/register/$', register,
         {'form_class': CustomRegistrationForm},