Adjusted the styling of the urls.py file.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Fri, 14 Jan 2011 04:18:03 +0530
changeset 397 68759310b1f3
parent 396 08893f05cc3d
child 398 4d063b3716cf
Adjusted the styling of the urls.py file.
pytask/urls.py
--- a/pytask/urls.py	Fri Jan 14 04:05:24 2011 +0530
+++ b/pytask/urls.py	Fri Jan 14 04:18:03 2011 +0530
@@ -11,27 +11,16 @@
 admin.autodiscover()
 
 urlpatterns = patterns('',
-    # Example:
-    # (r'^pytask/', include('pytask.foo.urls')),
-
-    # Uncomment the admin/doc line below to enable admin documentation:
-    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
-
-    # Uncomment the next line to enable the admin:
+    (r'^$', home_page),
     (r'^admin/', include(admin.site.urls)),
 
-    (r'^static/(?P<path>.*)$', 'django.views.static.serve',
-            {'document_root': './pytask/static/'}),
-
     url(r'^accounts/register/$', register,
-        {'form_class': CustomRegistrationForm,   
+        {'form_class': CustomRegistrationForm,
          'backend': 'registration.backends.default.DefaultBackend'},
         name='registration_register'),
-
     (r'^accounts/', include('registration.urls')),
     (r'^profile/', include('pytask.profile.urls')),
     (r'^task/', include('pytask.taskapp.urls')),
-    (r'^$', home_page),
 )
 
 # Serve static files in DEVELOPMENT = True mode