1 from django.conf.urls.defaults import * |
|
2 |
|
3 # Uncomment the next two lines to enable the admin: |
|
4 from django.contrib import admin |
|
5 admin.autodiscover() |
|
6 |
|
7 from pytask.taskapp.views import user as userViews |
|
8 from pytask.taskapp.views import task as taskViews |
|
9 |
|
10 from pytask.taskapp.forms.user import RegistrationFormCustom |
|
11 from registration.views import register |
|
12 |
|
13 urlpatterns = patterns('', |
|
14 # Example: |
|
15 # (r'^pytask/', include('pytask.foo.urls')), |
|
16 |
|
17 # Uncomment the admin/doc line below and add 'django.contrib.admindocs' |
|
18 # to INSTALLED_APPS to enable admin documentation: |
|
19 # (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
|
20 |
|
21 (r'^images/(?P<path>.*)$', 'django.views.static.serve', |
|
22 {'document_root': './images/'}), |
|
23 |
|
24 (r'^$', userViews.homepage), |
|
25 |
|
26 (r'^task/browse/$', taskViews.browse_tasks), |
|
27 (r'^task/view/tid=(\w+)$', taskViews.view_task), |
|
28 (r'^task/create/$', taskViews.create_task), |
|
29 (r'^task/publish/tid=(\w+)/$', taskViews.publish_task), |
|
30 (r'^task/addreviewer/tid=(\w+)$', taskViews.add_reviewer), |
|
31 (r'^task/edit/tid=(\w+)$', taskViews.edit_task), |
|
32 (r'^task/claim/tid=(\w+)$', taskViews.claim_task), |
|
33 (r'^task/assign/tid=(\w+)$', taskViews.assign_task), |
|
34 (r'^task/remuser/tid=(\w+)$', taskViews.rem_user), |
|
35 (r'^task/addtask/tid=(\w+)$', taskViews.add_tasks), |
|
36 (r'^task/remtask/tid=(\w+)$', taskViews.remove_task), |
|
37 (r'^task/assignpynts/tid=(\w+)$', taskViews.assign_pynts), |
|
38 (r'^task/complete/tid=(\w+)$', taskViews.complete_task), |
|
39 (r'^task/close/tid=(\w+)$', taskViews.close_task), |
|
40 (r'^task/delete/tid=(\w+)$', taskViews.delete_task), |
|
41 |
|
42 (r'^admin/', include(admin.site.urls)), |
|
43 |
|
44 url(r'^accounts/register/$',register,{'form_class' : RegistrationFormCustom},name='registration_register'), |
|
45 (r'^accounts/', include('registration.urls')), |
|
46 (r'^accounts/profile/$', userViews.view_my_profile), |
|
47 |
|
48 (r'^user/view/uid=(\d+)$', userViews.view_my_profile), |
|
49 (r'^user/edit/?$', userViews.edit_my_profile), |
|
50 |
|
51 (r'^user/requests/$', userViews.browse_requests), |
|
52 (r'^user/requests/rid=(\d+)/$', userViews.view_request), |
|
53 (r'^user/requests/rid=(\d+)/(\w+)/$', userViews.process_request), |
|
54 |
|
55 (r'^user/notifications/$', userViews.browse_notifications), |
|
56 (r'^user/notifications/nid=(\d+)/$', userViews.view_notification), |
|
57 (r'^user/notifications/nid=(\d+)/(\w+)/$', userViews.edit_notification), |
|
58 (r'^user/make/(\w+)/$', userViews.change_rights), |
|
59 |
|
60 (r'^about/(\w+)/$', userViews.learn_more), |
|
61 |
|
62 (r'^textbook/$', taskViews.show_textbooks), |
|
63 |
|
64 ) |
|
65 from django.conf.urls.defaults import * |
1 from django.conf.urls.defaults import * |
66 |
2 |
67 # Uncomment the next two lines to enable the admin: |
3 # Uncomment the next two lines to enable the admin: |
68 from django.contrib import admin |
4 from django.contrib import admin |
69 admin.autodiscover() |
5 admin.autodiscover() |