Modify the home page URL mapper to be consistent with other mappers.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Sat, 15 Jan 2011 21:20:35 +0530
changeset 415 c631194cec2a
parent 414 a052c9ffa27d
child 416 265dbd81c451
Modify the home page URL mapper to be consistent with other mappers.
pytask/urls.py
--- a/pytask/urls.py	Sat Jan 15 21:20:01 2011 +0530
+++ b/pytask/urls.py	Sat Jan 15 21:20:35 2011 +0530
@@ -1,17 +1,16 @@
 from django.conf import settings
 from django.conf.urls.defaults import *
+from django.contrib import admin
 
 from registration.views import register
 
 from pytask.profile.forms import CustomRegistrationForm
-from pytask.views import home_page
 
 
-from django.contrib import admin
 admin.autodiscover()
 
 urlpatterns = patterns('',
-    (r'^$', home_page),
+    url(r'^$', 'pytask.views.home_page', name='home_page'),
     (r'^admin/', include(admin.site.urls)),
 
     url(r'^accounts/register/$', register,