from django.conf.urls.defaults import *

urlpatterns = patterns('',
    (r'^profile/$', 'epiweb.apps.survey.views.profile_index'),
    (r'^thanks/$', 'epiweb.apps.survey.views.thanks'),
    url(r'^people/$', 'epiweb.apps.survey.views.people', name='survey_people'),
    url(r'^people/add/$', 'epiweb.apps.survey.views.people_add', name='survey_people_add'),
    (r'^$', 'epiweb.apps.survey.views.index'),
)


from django.conf.urls.defaults import *

from . import views

urlpatterns = patterns('',
    (r'^profile/$', views.profile_index),
    (r'^thanks/$', views.thanks),
    url(r'^people/$', views.people, name='survey_people'),
    url(r'^people/add/$', views.people_add, name='survey_people_add'),
    (r'^$', views.index),
)


Use view's function instead of its name
Use view's function instead of its name

  from django.conf.urls.defaults import *
  
+ from . import views
+ 
  urlpatterns = patterns('',
-     (r'^profile/$', 'epiweb.apps.survey.views.profile_index'),
+     (r'^profile/$', views.profile_index),
-     (r'^thanks/$', 'epiweb.apps.survey.views.thanks'),
+     (r'^thanks/$', views.thanks),
-     url(r'^people/$', 'epiweb.apps.survey.views.people', name='survey_people'),
+     url(r'^people/$', views.people, name='survey_people'),
-     url(r'^people/add/$', 'epiweb.apps.survey.views.people_add', name='survey_people_add'),
+     url(r'^people/add/$', views.people_add, name='survey_people_add'),
-     (r'^$', 'epiweb.apps.survey.views.index'),
+     (r'^$', views.index),
  )
  
  
Use view's function instead of its name
## Code Before:
from django.conf.urls.defaults import *

urlpatterns = patterns('',
    (r'^profile/$', 'epiweb.apps.survey.views.profile_index'),
    (r'^thanks/$', 'epiweb.apps.survey.views.thanks'),
    url(r'^people/$', 'epiweb.apps.survey.views.people', name='survey_people'),
    url(r'^people/add/$', 'epiweb.apps.survey.views.people_add', name='survey_people_add'),
    (r'^$', 'epiweb.apps.survey.views.index'),
)


## Instruction:
Use view's function instead of its name
## Code After:
from django.conf.urls.defaults import *

from . import views

urlpatterns = patterns('',
    (r'^profile/$', views.profile_index),
    (r'^thanks/$', views.thanks),
    url(r'^people/$', views.people, name='survey_people'),
    url(r'^people/add/$', views.people_add, name='survey_people_add'),
    (r'^$', views.index),
)

