38 lines
1.5 KiB
Python
38 lines
1.5 KiB
Python
from django.urls import path
|
|
|
|
from .views import (
|
|
crud_create,
|
|
crud_delete,
|
|
crud_detail,
|
|
crud_list,
|
|
crud_update,
|
|
export_alunos_view,
|
|
home,
|
|
import_alunos_view,
|
|
import_cursos_view,
|
|
pending_required_fields,
|
|
processar_situacao_view,
|
|
set_ano_censo,
|
|
start_task_view,
|
|
task_page_view,
|
|
task_status_view,
|
|
)
|
|
|
|
urlpatterns = [
|
|
path("", home, name="home"),
|
|
path("ano-censo/", set_ano_censo, name="set_ano_censo"),
|
|
path("importar/alunos/", import_alunos_view, name="import_alunos"),
|
|
path("importar/cursos/", import_cursos_view, name="import_cursos"),
|
|
path("exportar/alunos/<slug:filtro>/", export_alunos_view, name="export_alunos"),
|
|
path("processar/situacao/", processar_situacao_view, name="processar_situacao"),
|
|
path("pendencias/", pending_required_fields, name="pending_required_fields"),
|
|
path("tarefas/<slug:operacao>/", task_page_view, name="task_page"),
|
|
path("tarefas/<slug:operacao>/iniciar/", start_task_view, name="start_task"),
|
|
path("tarefas/status/<str:task_id>/", task_status_view, name="task_status"),
|
|
path("cadastros/<slug:slug>/", crud_list, name="crud_list"),
|
|
path("cadastros/<slug:slug>/novo/", crud_create, name="crud_create"),
|
|
path("cadastros/<slug:slug>/<str:pk>/", crud_detail, name="crud_detail"),
|
|
path("cadastros/<slug:slug>/<str:pk>/editar/", crud_update, name="crud_update"),
|
|
path("cadastros/<slug:slug>/<str:pk>/excluir/", crud_delete, name="crud_delete"),
|
|
]
|