-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
218 lines (165 loc) · 7.95 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
from django.conf.urls import patterns, include, url
import settings
import os
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Uncomment the admin/doc line below to enable admin documentation:
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
)
if settings.DEBUG:
urlpatterns += patterns('',
# (r'^media/(.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'media')}),
(r'^site_media/(.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'apps/devproc/site_media')}),
)
urlpatterns += patterns('',
url(r'^uploads/', include('multiuploader.urls')),
)
urlpatterns += patterns('apps.devproc.utils',
url(r'^delete/attachment/$', 'delete_file'),
)
urlpatterns += patterns('apps.public.views.auth',
url(r'^accounts/login/$', 'process_login'),
url(r'^accounts/logout/$', 'process_logout'),
)
urlpatterns += patterns('apps.public.views.registration',
(r'^account/registration/$', 'account_registration'),
)
urlpatterns += patterns('',
(r'^accounts/password_reset/$', 'django.contrib.auth.views.password_reset',
{'template_name' : 'registration/password_reset_form.html',
'email_template_name' : 'registration/password_reset_email.html'}),
(r'^accounts/password_reset_done/$', 'django.contrib.auth.views.password_reset_done',
{'template_name' : 'registration/password_reset_done.html'}),
(r'^accounts/reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', 'django.contrib.auth.views.password_reset_confirm',
{'template_name': 'registration/password_reset_confirm.html'}),
(r'^accounts/password_reset_complete/$', 'django.contrib.auth.views.password_reset_complete',
{'template_name': 'registration/password_reset_complete.html'}),
)
urlpatterns += patterns('apps.devproc.views.account',
url(r'^account/$', 'view_account'),
url(r'^account/edit/$', 'edit_account'),
)
urlpatterns += patterns('apps.devproc.views.dashboard',
url(r'^dashboard/$', 'view_dashboard'),
)
urlpatterns += patterns('apps.devproc.views.feedback',
url(r'^feedback/$', 'view_all_feedback'),
url(r'^feedback/add/(?P<feature_id>\d+)/$', 'create_feedback'),
url(r'^feedback/(?P<betatest_id>\d+)/(?P<customer_id>\d+)/$', 'view_feedback'),
url(r'^feedback/(?P<feedback_id>\d+)/edit/$', 'edit_feedback'),
url(r'^feedback/(?P<feedback_id>\d+)/delete/$', 'delete_feedback'),
)
urlpatterns += patterns('apps.devproc.views.requirement',
url(r'^requirements/$', 'view_all_reqmts'),
url(r'^requirements/add/$', 'create_reqmt'),
url(r'^requirements/(?P<reqmt_id>\d+)/$', 'view_reqmt'),
url(r'^requirements/(?P<reqmt_id>\d+)/edit/$', 'edit_reqmt'),
url(r'^requirements/(?P<reqmt_id>\d+)/delete/$', 'delete_reqmt'),
)
urlpatterns += patterns('apps.devproc.views.attribute',
url(r'^attributes/(?P<component_id>\d+)/$', 'view_all_attributes'),
url(r'^attributes/add/(?P<component_id>\d+)/$', 'create_attribute'),
url(r'^attributes/(?P<component_id>\d+)/(?P<attribute_id>\d+)/$', 'view_attribute'),
url(r'^attributes/(?P<attribute_id>\d+)/edit/$', 'edit_attribute'),
url(r'^attributes/(?P<attribute_id>\d+)/delete/$', 'delete_attribute'),
)
urlpatterns += patterns('apps.devproc.views.betatest',
url(r'^betatests/$', 'view_all_betatests'),
url(r'^betatests/add/$', 'create_betatest'),
url(r'^betatests/(?P<betatest_id>\d+)/$', 'view_betatest'),
url(r'^betatests/(?P<betatest_id>\d+)/delete/$', 'delete_betatest'),
)
urlpatterns += patterns('apps.devproc.views.bug',
url(r'^bugs/$', 'view_all_bugs'),
url(r'^bugs/add/test/(?P<test_id>\d+)/$', 'create_bug', {'type': 'test'}),
url(r'^bugs/add/betatest/(?P<test_id>\d+)/$', 'create_bug', {'type': 'betatest'}),
url(r'^bugs/(?P<bug_id>\d+)/$', 'view_bug'),
url(r'^bugs/(?P<bug_id>\d+)/edit/$', 'edit_bug'),
url(r'^bugs/(?P<bug_id>\d+)/delete/$', 'delete_bug'),
)
urlpatterns += patterns('apps.devproc.views.component',
url(r'^components/$', 'view_all_components'),
url(r'^components/add/$', 'create_component'),
url(r'^components/(?P<component_id>\d+)/$', 'view_component'),
url(r'^components/(?P<component_id>\d+)/edit/$', 'edit_component'),
url(r'^components/(?P<component_id>\d+)/delete/$', 'delete_component'),
)
urlpatterns += patterns('apps.devproc.views.customer',
url(r'^customers/$', 'view_all_customers'),
url(r'^customers/add/$', 'create_customer'),
url(r'^customers/(?P<customer_id>\d+)/$', 'view_customer'),
url(r'^customers/(?P<customer_id>\d+)/edit/$', 'edit_customer'),
url(r'^customers/(?P<customer_id>\d+)/delete/$', 'delete_customer'),
)
urlpatterns += patterns('apps.devproc.views.feature',
url(r'^features/$', 'view_all_features'),
url(r'^features/add/$', 'create_feature'),
url(r'^features/(?P<feature_id>\d+)/$', 'view_feature'),
url(r'^features/(?P<feature_id>\d+)/edit/$', 'edit_feature'),
url(r'^features/(?P<feature_id>\d+)/delete/$', 'delete_feature'),
)
urlpatterns += patterns('apps.devproc.views.member',
url(r'^members/team/(?P<team_id>\d+)/$', 'view_all_members'),
url(r'^members/(?P<team_id>\d+)/add/$', 'create_member'),
url(r'^members/(?P<member_id>\d+)/$', 'view_member'),
url(r'^members/(?P<member_id>\d+)/edit/$', 'edit_member'),
url(r'^members/(?P<member_id>\d+)/delete/$', 'delete_member'),
)
urlpatterns += patterns('apps.devproc.views.milestone',
url(r'^milestones/$', 'view_all_milestones'),
url(r'^milestones/add/$', 'create_milestone'),
url(r'^milestones/(?P<milestone_id>\d+)/$', 'view_milestone'),
url(r'^milestones/(?P<milestone_id>\d+)/edit/$', 'edit_milestone'),
url(r'^milestones/(?P<milestone_id>\d+)/delete/$', 'delete_milestone'),
)
urlpatterns += patterns('apps.devproc.views.release',
url(r'^releases/$', 'view_all_releases'),
url(r'^releases/add/$', 'create_release'),
url(r'^releases/(?P<release_id>\d+)/$', 'view_release'),
url(r'^releases/(?P<release_id>\d+)/edit/$', 'edit_release'),
url(r'^releases/(?P<release_id>\d+)/delete/$', 'delete_release'),
)
urlpatterns += patterns('apps.devproc.views.risk',
url(r'^risks/$', 'view_all_risks'),
url(r'^risks/add/feature/(?P<obj_id>\d+)/$', 'create_risk', {'type': 'feature'}),
url(r'^risks/add/component/(?P<obj_id>\d+)/$', 'create_risk', {'type': 'component'}),
url(r'^risks/add/bug/(?P<obj_id>\d+)/$', 'create_risk', {'type': 'bug'}),
url(r'^risks/(?P<risk_id>\d+)/$', 'view_risk'),
url(r'^risks/(?P<risk_id>\d+)/edit/$', 'edit_risk'),
url(r'^risks/(?P<risk_id>\d+)/delete/$', 'delete_risk'),
)
urlpatterns += patterns('apps.devproc.views.roadmap',
url(r'^roadmap/$', 'view_roadmap')
)
urlpatterns += patterns('apps.devproc.views.team',
url(r'^teams/$', 'view_all_teams'),
url(r'^teams/add/$', 'create_team'),
url(r'^teams/(?P<team_id>\d+)/$', 'view_team'),
url(r'^teams/(?P<team_id>\d+)/edit/$', 'edit_team'),
url(r'^teams/(?P<team_id>\d+)/delete/$', 'delete_team'),
)
urlpatterns += patterns('apps.devproc.views.test',
url(r'^tests/$', 'view_all_tests'),
url(r'^tests/add/$', 'create_test'),
url(r'^tests/(?P<test_id>\d+)/$', 'view_test'),
url(r'^tests/(?P<test_id>\d+)/edit/$', 'edit_test'),
url(r'^tests/(?P<test_id>\d+)/delete/$', 'delete_test'),
)
urlpatterns += patterns('apps.devproc.views.usecase',
url(r'^usecases/$', 'view_all_usecases'),
url(r'^usecases/add/$', 'create_usecase'),
url(r'^usecases/(?P<usecase_id>\d+)/$', 'view_usecase'),
url(r'^usecases/(?P<usecase_id>\d+)/edit/$', 'edit_usecase'),
url(r'^usecases/(?P<usecase_id>\d+)/delete/$', 'delete_usecase'),
)
urlpatterns += patterns('apps.devproc.views.product',
url(r'^products/$', 'view_all_products'),
url(r'^products/add/$', 'create_product'),
url(r'^products/(?P<product_id>\d+)/$', 'view_product'),
url(r'^products/(?P<product_id>\d+)/edit/$', 'edit_product'),
url(r'^products/(?P<product_id>\d+)/delete/$', 'delete_product'),
)