17 lines
545 B
Python
17 lines
545 B
Python
from django.urls import path
|
|
|
|
from . import apps
|
|
from . import views
|
|
from .views import TaskCreateView, TaskDetailView, TaskUpdateView, DocumentCreateView
|
|
|
|
|
|
app_name = apps.TasksConfig.name
|
|
|
|
urlpatterns = [
|
|
path("", views.index, name="index"),
|
|
path("add/", TaskCreateView.as_view(), name="task-create"),
|
|
path("<slug:slug>/", TaskDetailView.as_view(), name="task-detail"),
|
|
path("<slug:slug>/update/", TaskUpdateView.as_view(), name="task-update"),
|
|
path("<slug:slug>/add/", DocumentCreateView.as_view(), name="docu-create"),
|
|
]
|