urls.py
changeset 44 2b09336352b5
parent 42 9b5b8c997598
child 62 db103856505e
equal deleted inserted replaced
43:b5b9a4fc508f 44:2b09336352b5
     5 admin.autodiscover()
     5 admin.autodiscover()
     6 
     6 
     7 from pytask.taskapp.views import user as userViews
     7 from pytask.taskapp.views import user as userViews
     8 from pytask.taskapp.views import task as taskViews
     8 from pytask.taskapp.views import task as taskViews
     9 
     9 
       
    10 from pytask.taskapp.forms.user import RegistrationFormCustom
       
    11 from registration.views import register
    10 
    12 
    11 urlpatterns = patterns('',
    13 urlpatterns = patterns('',
    12     # Example:
    14     # Example:
    13     # (r'^pytask/', include('pytask.foo.urls')),
    15     # (r'^pytask/', include('pytask.foo.urls')),
    14 
    16 
    27     (r'^task/claim/tid=(\d+)', taskViews.claim_task),
    29     (r'^task/claim/tid=(\d+)', taskViews.claim_task),
    28     (r'^task/assign/tid=(\d+)', taskViews.assign_task),
    30     (r'^task/assign/tid=(\d+)', taskViews.assign_task),
    29     
    31     
    30     (r'^admin/', include(admin.site.urls)),
    32     (r'^admin/', include(admin.site.urls)),
    31     
    33     
       
    34     url(r'^accounts/register/$',register,{'form_class' : RegistrationFormCustom},name='registration_register'),
    32     (r'^accounts/', include('registration.urls')),
    35     (r'^accounts/', include('registration.urls')),
    33     (r'^accounts/profile/$', userViews.view_my_profile),
    36     (r'^accounts/profile/$', userViews.view_my_profile),
    34     
    37     
    35     (r'^user/view/uid=(\d+)$', userViews.view_my_profile),
    38     (r'^user/view/uid=(\d+)$', userViews.view_my_profile),
    36     (r'^user/edit/?$', userViews.edit_my_profile),
    39     (r'^user/edit/?$', userViews.edit_my_profile),