forked from raksha-life/rescuekerala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
66 lines (65 loc) · 4.58 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
from django.urls import path
from django.conf.urls import url
from django.contrib.auth import views as auth_views
from . import views
from . import api_views
from django.views.generic import TemplateView
urlpatterns = [
path('', views.HomePageView.as_view(), name='home'),
path('ngo-volunteer/', views.NgoVolunteerView.as_view(), name='ngovolunteerview'),
path('map-view/', views.MapView.as_view(), name='mapview'),
path('request/', views.CreateRequest.as_view(), name='requestview'),
path('request_update/', api_views.request_update_list, name='api_request_update'),
# path('volunteer/', views.Maintenance.as_view(), name='registerview'),
path('volunteer/', views.RegisterVolunteer.as_view(), name='registerview'),
path('volunteerdata/', views.volunteerdata, name='volunteerdata'),
path('NGO/', views.RegisterNGO.as_view(), name='ngoregisterview'),
path('ngoview/', views.ngo_list, name='ngoview'),
path('NGO/download/', views.download_ngo_list, name='ngo_download_view'),
path('requests/', views.request_list, name='requestlistview'),
url(r'request_details/(?P<request_id>\d+)/$', views.request_details, name='requestdetailsview'),
path('contactus/', views.districtmanager_list, name='contactus'),
path('reg_success/', views.RegSuccess.as_view(), name='reg_successview'),
path('req_sucess/', views.ReqSuccess.as_view(), name='req_sucessview'),
path('district_needs/', views.DistNeeds.as_view(), name='distneedsview'),
path('collection_center/', views.CollectionCenterView.as_view(), name='collection_centers_view'),
url(r'collection_centers/(?P<location>\w+)/$', views.CollectionCenterListView.as_view(), name='collection_centers_list'),
path('collection_centers/', TemplateView.as_view(template_name='mainapp/collectioncenter_state_select.html'), name='collection_centers_district_select'),
path('reg_contrib/', views.RegisterContributor.as_view(), name='reg_contribview'),
path('contribview/', views.contributors, name='contribview'),
path('contrib_success/', views.ContribSuccess.as_view(), name='contribsucessview'),
path('disclaimer/', views.DisclaimerPage.as_view(), name='disclaimer'),
path('ieee/', views.AboutIEEE.as_view(), name='aboutieee'),
path('pcampadd' , views.RegisterPrivateReliefCamp.as_view() , name="Private Camps"),
path('pcamp/' , views.pcamplist , name="privatecamplist"),
path('pcampdet/' , views.pcampdetails , name="privatecampdetails"),
path('privatecc/' , views.privatecc , name="privatedetails"),
# path('data/' , views.data , name="data"),
path('map/' , views.mapview , name="map"),
path('dmodash/' , views.dmodash , name="DMODash"),
path('dmoinfo/' , views.dmoinfo , name="DMOInfo" ),
path('dmocsv/' , views.dmocsv , name="DMOCSV" ),
path('dmodist/' , views.dmodist , name="DMODist" ),
path('dmotal/' , views.dmotal , name="DMOTal" ),
path('error/' , views.error , name="errorview" ),
path('login/', auth_views.LoginView.as_view(template_name='mainapp/login.html'),name='user_login'),
path('logout/', views.logout_view, name='user_logout'),
path('relief_camps/data/', views.relief_camps_data, name='relief_camps_data'),
path('relief_camps/', views.relief_camps, name='relief_camps'),
path('relief_camps_list/', views.relief_camps_list, name='relief_camps_list'),
path('camp/<int:pk>/requirements/',views.CampRequirements.as_view(),name='camp_requirements'),
path('camp/<int:pk>/details/',views.CampDetails.as_view(),name='camp_details'),
path('camp/<int:camp_id>/add_person/', views.AddPerson.as_view(), name='add_person'),
path('coordinator_home/', views.coordinator_home, name='coordinator_home'),
path('find_people/', views.find_people, name='find_people'),
path('missing_persons/', views.missing_persons, name='missing_persons'),
path('announcements/', views.announcements, name="Announcements"),
path('camp_requirements/', views.camp_requirements_list, name='camp_requirements_list'),
path('submission_success/', views.SubmissionSuccess.as_view(), name='submission_success'),
url(r'request_update/(?P<request_id>\d+)/$', views.RequestUpdateView.as_view(), name='requestupdateview'),
path('req_update_success/', views.ReqUpdateSuccess.as_view(), name='req_update_success'),
path('consent_success/', views.ConsentSuccess.as_view(), name='consent_success'),
url(r'c/(?P<pk>\d+)/(?P<ts>\d+)/$', views.VolunteerConsent.as_view(), name='volunteer_consent'),
url('missing_and_finding_persons/', views.ReportFindPerson.as_view(), name='report_find_person'),
url('hospitals/', views.HospitalView.as_view(), name='hospitals')
]