This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathurls.py
38 lines (32 loc) · 2 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
##Adaptation of code to django 2.0:
# "from django.conf.urls import include , url" replaced by "from django.urls import path"
# "url(r'^" replaced by "path('"
from django.urls import path
from django.conf import settings
from django.shortcuts import redirect
from . import views
from django.conf.urls.static import static
from django.views.generic import ListView, DetailView
urlpatterns = [
path('', views.index, name='index'),
path('service_request_<str:serviceRequestType>',views.service_request, name='service_request'),
path('counseling_request',views.counseling_request, name='counseling_service'),
path('configurationTest',views.configuration_test, name='configuration_test'),
path('infrastructure_request',views.infrastructure_request, name='infrastructure_service'),
path('searchService', views.search_service, name='search_service'),
path('pendingServices', views.pending_services, name ='peding_services'),
path('display_service=<int:service_id>/',views.display_service, name= 'display_service'),
path('addResolution=<int:service_id>/',views.add_resolution, name='add_resolution'),
path('addinProgress=<int:resolution_id>/', views.add_in_progress, name='add_in_progress'),
path('addDelivery=<int:resolution_id>/', views.add_delivery, name= 'add_delivery'),
path('statsByDateUser',views.stats_by_date_user, name = 'stats_by_date_user'),
path('statsByServicesRequest',views.stats_by_services_request, name = 'stats_by_services_request'),
path('statsBySamplesProcessed',views.stats_by_samples_processed, name = 'stats_by_samples_processed'),
path('statsTimeDelivery', views.stats_time_delivery, name = 'stats_time_delivery'),
path('openSessions', views.open_sessions, name='open_sessions'),
path('userLogin', views.user_login, name = 'user_login'),
#path('pdf',views.pdf, name= 'pdf'),
#path('test',views.test, name ='test'),
]
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)