author | nishanth |
Fri, 26 Feb 2010 02:52:32 +0530 | |
changeset 111 | c272d4c601cd |
parent 103 | 3a4c8fccb9f3 |
child 114 | 38793914921b |
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), |
0f10deac0a9b
made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents:
35
diff
changeset
|
27 |
(r'^task/view/tid=(\d+)$', taskViews.view_task), |
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), |
111 | 29 |
(r'task/publish/tid=(\d+)/$', taskViews.publish_task), |
89
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
83
diff
changeset
|
30 |
(r'^task/addmentor/tid=(\d+)$', taskViews.add_mentor), |
36
0f10deac0a9b
made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents:
35
diff
changeset
|
31 |
#(r'^task/addtasks/tid=(\d+)', taskViews.add_tasks), |
89
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
83
diff
changeset
|
32 |
(r'^task/edit/tid=(\d+)$', taskViews.edit_task), |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
83
diff
changeset
|
33 |
(r'^task/claim/tid=(\d+)$', taskViews.claim_task), |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
83
diff
changeset
|
34 |
(r'^task/assign/tid=(\d+)$', taskViews.assign_task), |
94 | 35 |
(r'^task/remuser/tid=(\d+)$', taskViews.rem_user), |
89
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
83
diff
changeset
|
36 |
(r'^task/addtask/tid=(\d+)$', taskViews.add_tasks), |
92
c99f09bebe56
added the capability to remove subtasks/dependencies .
nishanth
parents:
89
diff
changeset
|
37 |
(r'^task/remtask/tid=(\d+)$', taskViews.remove_task), |
93
1a1e712e60fd
finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
92
diff
changeset
|
38 |
(r'^task/assigncredits/tid=(\d+)$', taskViews.assign_credits), |
12
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
10
diff
changeset
|
39 |
|
10
bf0cbea1bd12
removed views.py and made it a package. added auth_profile to settings.py
nishanth
parents:
1
diff
changeset
|
40 |
(r'^admin/', include(admin.site.urls)), |
13
0fb64b24a1c9
added views, templates for register, login, logout user.
anoop
parents:
12
diff
changeset
|
41 |
|
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
|
42 |
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
|
43 |
(r'^accounts/', include('registration.urls')), |
9b5b8c997598
started using django-registration default backend, removed browse users functionality.
anoop
parents:
40
diff
changeset
|
44 |
(r'^accounts/profile/$', userViews.view_my_profile), |
9b5b8c997598
started using django-registration default backend, removed browse users functionality.
anoop
parents:
40
diff
changeset
|
45 |
|
36
0f10deac0a9b
made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents:
35
diff
changeset
|
46 |
(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
|
47 |
(r'^user/edit/?$', userViews.edit_my_profile), |
83 | 48 |
|
49 |
(r'^user/requests/$', userViews.browse_requests), |
|
50 |
(r'^user/requests/rid=(\d+)/$', userViews.view_request), |
|
51 |
(r'^user/requests/rid=(\d+)/(\w+)/$', userViews.process_request), |
|
101 | 52 |
|
53 |
(r'^user/notifications/$', userViews.browse_notifications), |
|
103 | 54 |
(r'^user/notifications/nid=(\d+)/$', userViews.view_notification), |
55 |
(r'^user/notifications/nid=(\d+)/(\w+)/$', userViews.edit_notification), |
|
31 | 56 |
|
0
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
57 |
) |