Первоначальный залив проекта
This commit is contained in:
77
retraining/main/urls.py
Normal file
77
retraining/main/urls.py
Normal file
@@ -0,0 +1,77 @@
|
||||
from django.urls import path, include
|
||||
|
||||
from .views import *
|
||||
|
||||
urlpatterns = [
|
||||
# главная
|
||||
path('', index, name='mainpage'),
|
||||
|
||||
path('accounts/', include('django.contrib.auth.urls')), # добавил для отработки функций авторизаций
|
||||
|
||||
# сотрудники
|
||||
# path('employee/', employee, name='employee'),
|
||||
|
||||
# договоры
|
||||
path('contracts/', contracts_page, name='contracts'),
|
||||
path('contract/<int:contract_id>', get_contract, name='contract'),
|
||||
|
||||
# студенты
|
||||
path('students/', students_page, name='students'),
|
||||
path('student/<int:student_id>', get_student, name='student'),
|
||||
|
||||
# заказчики
|
||||
path('customer/<int:customer_id>', get_customer, name='customer'),
|
||||
|
||||
# приказы
|
||||
path('orders/', orders_page, name='orders'),
|
||||
path('get_order/<int:order_id>', get_order, name='get_order'),
|
||||
|
||||
# Пропуска
|
||||
path('access/', access_page, name='access'),
|
||||
path('get_acces/<int:acces_id>', get_acces, name = 'get_acces'),
|
||||
path('gen_access/<int:acces_id>', gen_acces, name = 'gen_acces'),
|
||||
|
||||
|
||||
# Анне
|
||||
path('for_registry/<int:order_id>', for_registry, name='for_registry'),
|
||||
path('gen_for_registry/<int:order_id>', gen_for_registry, name='gen_for_registry'),
|
||||
|
||||
|
||||
# протоколы
|
||||
path('get_protocol/<int:protocol_pk>', get_protocol, name='get_protocol'),
|
||||
|
||||
|
||||
# Выписка
|
||||
path('extract/<int:extract_id>', get_extract, name='extract'),
|
||||
|
||||
# группы
|
||||
path('groups/', groups_page, name='groups'),
|
||||
path('group/<int:group_id>', get_group, name='group'),
|
||||
path('gen_list_students/<int:group_id>', gen_list_students, name='gen_list_students'),
|
||||
path('gen_list_sdo/<int:group_id>', gen_list_sdo, name='gen_list_sdo'),
|
||||
|
||||
|
||||
# справки
|
||||
path('sertificates/', sertificates_page, name='sertificates'),
|
||||
path('sertificate/<int:sertificate_id>', get_sertificates, name='sertificate'),
|
||||
|
||||
# темы ВКР
|
||||
path('graduation_works/', graduation_works, name='graduation_works'),
|
||||
|
||||
|
||||
# страницы печати документов
|
||||
path('print_extract/<int:extract_id>', print_extract, name='print_extract'),
|
||||
path('print_contract/<int:contract_id>', print_contract, name='print_contract'),
|
||||
path('print_order/<int:order_id>', print_order, name='order'),
|
||||
path('print_sertificate/<int:sertificate_id>', print_sertificate, name='print_sertificate'),
|
||||
|
||||
path('gen_extract/<int:extract_id>', gen_extract, name='gen_extract'),
|
||||
path('gen_order/<int:order_id>', gen_order, name='gen_order'),
|
||||
path('gen_protocol/<int:contract_id>', gen_protocol, name='gen_protocol'),
|
||||
path('gen_protocols/<int:order_id>', gen_protocols, name='gen_protocols'),
|
||||
path('gen_group_list/<int:group_id>', gen_group_list, name='gen_group_list'),
|
||||
path('gen_diploma_supplement/<int:contract_id>', gen_diploma_supplement, name='gen_diploma_supplement'),
|
||||
path('gen_diploma_form/<int:contract_id>', gen_diplma_form, name='gen_diploma_form'),
|
||||
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user