author | Nishanth Amuluru <nishanth@fossee.in> |
Wed, 05 Jan 2011 22:22:10 +0530 | |
changeset 218 | 59107ce0a618 |
parent 215 | 84ec0ca5bc68 |
child 219 | f04a1ec7a07f |
permissions | -rw-r--r-- |
0
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
1 |
from django.conf.urls.defaults import * |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
2 |
|
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
3 |
# Uncomment the next two lines to enable the admin: |
1
7818992cbf83
Created taskapp and added data to models.py and edited settings.py to make it usable in admin interface.
Nishanth <nishanth@fossee.in>
parents:
0
diff
changeset
|
4 |
from django.contrib import admin |
7818992cbf83
Created taskapp and added data to models.py and edited settings.py to make it usable in admin interface.
Nishanth <nishanth@fossee.in>
parents:
0
diff
changeset
|
5 |
admin.autodiscover() |
0
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
6 |
|
36
0f10deac0a9b
made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents:
35
diff
changeset
|
7 |
from pytask.taskapp.views import user as userViews |
0f10deac0a9b
made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents:
35
diff
changeset
|
8 |
from pytask.taskapp.views import task as taskViews |
12
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
10
diff
changeset
|
9 |
|
44
2b09336352b5
fixed creation of user profile at registration time, added custom registration form so as to include dob and gender.
anoop
parents:
42
diff
changeset
|
10 |
from pytask.taskapp.forms.user import RegistrationFormCustom |
2b09336352b5
fixed creation of user profile at registration time, added custom registration form so as to include dob and gender.
anoop
parents:
42
diff
changeset
|
11 |
from registration.views import register |
31 | 12 |
|
0
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
13 |
urlpatterns = patterns('', |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
14 |
# Example: |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
15 |
# (r'^pytask/', include('pytask.foo.urls')), |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
16 |
|
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
17 |
# Uncomment the admin/doc line below and add 'django.contrib.admindocs' |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
18 |
# to INSTALLED_APPS to enable admin documentation: |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
19 |
# (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
62 | 20 |
|
21 |
(r'^images/(?P<path>.*)$', 'django.views.static.serve', |
|
22 |
{'document_root': './images/'}), |
|
23 |
||
36
0f10deac0a9b
made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents:
35
diff
changeset
|
24 |
(r'^$', userViews.homepage), |
23 | 25 |
|
36
0f10deac0a9b
made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents:
35
diff
changeset
|
26 |
(r'^task/browse/$', taskViews.browse_tasks), |
120 | 27 |
(r'^task/view/tid=(\w+)$', taskViews.view_task), |
36
0f10deac0a9b
made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents:
35
diff
changeset
|
28 |
(r'^task/create/$', taskViews.create_task), |
167 | 29 |
(r'^task/publish/tid=(\w+)/$', taskViews.publish_task), |
218
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
30 |
(r'^task/addreviewer/tid=(\w+)$', taskViews.add_reviewer), |
120 | 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/assigncredits/tid=(\w+)$', taskViews.assign_credits), |
|
38 |
(r'^task/complete/tid=(\w+)$', taskViews.complete_task), |
|
126 | 39 |
(r'^task/close/tid=(\w+)$', taskViews.close_task), |
167 | 40 |
(r'^task/delete/tid=(\w+)$', taskViews.delete_task), |
12
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
10
diff
changeset
|
41 |
|
10
bf0cbea1bd12
removed views.py and made it a package. added auth_profile to settings.py
nishanth
parents:
1
diff
changeset
|
42 |
(r'^admin/', include(admin.site.urls)), |
13
0fb64b24a1c9
added views, templates for register, login, logout user.
anoop
parents:
12
diff
changeset
|
43 |
|
44
2b09336352b5
fixed creation of user profile at registration time, added custom registration form so as to include dob and gender.
anoop
parents:
42
diff
changeset
|
44 |
url(r'^accounts/register/$',register,{'form_class' : RegistrationFormCustom},name='registration_register'), |
42
9b5b8c997598
started using django-registration default backend, removed browse users functionality.
anoop
parents:
40
diff
changeset
|
45 |
(r'^accounts/', include('registration.urls')), |
9b5b8c997598
started using django-registration default backend, removed browse users functionality.
anoop
parents:
40
diff
changeset
|
46 |
(r'^accounts/profile/$', userViews.view_my_profile), |
9b5b8c997598
started using django-registration default backend, removed browse users functionality.
anoop
parents:
40
diff
changeset
|
47 |
|
36
0f10deac0a9b
made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents:
35
diff
changeset
|
48 |
(r'^user/view/uid=(\d+)$', userViews.view_my_profile), |
0f10deac0a9b
made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents:
35
diff
changeset
|
49 |
(r'^user/edit/?$', userViews.edit_my_profile), |
83 | 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), |
|
101 | 54 |
|
55 |
(r'^user/notifications/$', userViews.browse_notifications), |
|
103 | 56 |
(r'^user/notifications/nid=(\d+)/$', userViews.view_notification), |
57 |
(r'^user/notifications/nid=(\d+)/(\w+)/$', userViews.edit_notification), |
|
141
2489392ffb56
added the functionality to request a user to be AD MG DV.
nishanth
parents:
127
diff
changeset
|
58 |
(r'^user/make/(\w+)/$', userViews.change_rights), |
127
71888e23f323
created a view for about pages and added about pages for mentor and addmentors.
nishanth
parents:
126
diff
changeset
|
59 |
|
71888e23f323
created a view for about pages and added about pages for mentor and addmentors.
nishanth
parents:
126
diff
changeset
|
60 |
(r'^about/(\w+)/$', userViews.learn_more), |
215
84ec0ca5bc68
Added a page for displaying all the textbooks
Nishanth Amuluru <nishanth@fossee.in>
parents:
167
diff
changeset
|
61 |
|
84ec0ca5bc68
Added a page for displaying all the textbooks
Nishanth Amuluru <nishanth@fossee.in>
parents:
167
diff
changeset
|
62 |
(r'^textbook/$', taskViews.show_textbooks), |
31 | 63 |
|
0
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
64 |
) |
218
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
65 |
from django.conf.urls.defaults import * |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
66 |
|
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
67 |
# Uncomment the next two lines to enable the admin: |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
68 |
from django.contrib import admin |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
69 |
admin.autodiscover() |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
70 |
|
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
71 |
from pytask.taskapp.views import user as userViews |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
72 |
from pytask.taskapp.views import task as taskViews |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
73 |
|
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
74 |
from pytask.taskapp.forms.user import RegistrationFormCustom |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
75 |
from registration.views import register |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
76 |
|
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
77 |
urlpatterns = patterns('', |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
78 |
# Example: |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
79 |
# (r'^pytask/', include('pytask.foo.urls')), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
80 |
|
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
81 |
# Uncomment the admin/doc line below and add 'django.contrib.admindocs' |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
82 |
# to INSTALLED_APPS to enable admin documentation: |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
83 |
# (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
84 |
|
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
85 |
(r'^images/(?P<path>.*)$', 'django.views.static.serve', |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
86 |
{'document_root': './images/'}), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
87 |
|
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
88 |
(r'^$', userViews.homepage), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
89 |
|
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
90 |
(r'^task/browse/$', taskViews.browse_tasks), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
91 |
(r'^task/view/tid=(\w+)$', taskViews.view_task), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
92 |
(r'^task/create/$', taskViews.create_task), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
93 |
(r'^task/publish/tid=(\w+)/$', taskViews.publish_task), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
94 |
(r'^task/addreviewer/tid=(\w+)$', taskViews.add_reviewer), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
95 |
(r'^task/edit/tid=(\w+)$', taskViews.edit_task), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
96 |
(r'^task/claim/tid=(\w+)$', taskViews.claim_task), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
97 |
(r'^task/assign/tid=(\w+)$', taskViews.assign_task), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
98 |
(r'^task/remuser/tid=(\w+)$', taskViews.rem_user), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
99 |
(r'^task/addtask/tid=(\w+)$', taskViews.add_tasks), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
100 |
(r'^task/remtask/tid=(\w+)$', taskViews.remove_task), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
101 |
(r'^task/assigncredits/tid=(\w+)$', taskViews.assign_credits), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
102 |
(r'^task/complete/tid=(\w+)$', taskViews.complete_task), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
103 |
(r'^task/close/tid=(\w+)$', taskViews.close_task), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
104 |
(r'^task/delete/tid=(\w+)$', taskViews.delete_task), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
105 |
|
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
106 |
(r'^admin/', include(admin.site.urls)), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
107 |
|
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
108 |
url(r'^accounts/register/$',register,{'form_class' : RegistrationFormCustom},name='registration_register'), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
109 |
(r'^accounts/', include('registration.urls')), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
110 |
(r'^accounts/profile/$', userViews.view_my_profile), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
111 |
|
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
112 |
(r'^user/view/uid=(\d+)$', userViews.view_my_profile), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
113 |
(r'^user/edit/?$', userViews.edit_my_profile), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
114 |
|
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
115 |
(r'^user/requests/$', userViews.browse_requests), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
116 |
(r'^user/requests/rid=(\d+)/$', userViews.view_request), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
117 |
(r'^user/requests/rid=(\d+)/(\w+)/$', userViews.process_request), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
118 |
|
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
119 |
(r'^user/notifications/$', userViews.browse_notifications), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
120 |
(r'^user/notifications/nid=(\d+)/$', userViews.view_notification), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
121 |
(r'^user/notifications/nid=(\d+)/(\w+)/$', userViews.edit_notification), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
122 |
(r'^user/make/(\w+)/$', userViews.change_rights), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
123 |
|
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
124 |
(r'^about/(\w+)/$', userViews.learn_more), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
125 |
|
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
126 |
(r'^textbook/$', taskViews.show_textbooks), |
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
127 |
|
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
215
diff
changeset
|
128 |
) |