from django.urls import path from webapp.views import IndexView, TaskView, TaskCreateView, TaskUpdateView, TaskDeleteView, StatusIndexView, \ StatusCreateView, StatusUpdateView, StatusDeleteView, TypeIndexView, TypeCreateView, TypeUpdateView, TypeDeleteView from webapp.views.project_views import ProjectIndexView, ProjectView, ProjectCreateView, ProjectUpdateView, \ ProjectDeleteView app_name = 'webapp' urlpatterns = [ path('', IndexView.as_view(), name='index'), path('task/<int:pk>', TaskView.as_view(), name='task_view'), path('task/create/', TaskCreateView.as_view(), name='task_create'), path('task/<int:pk>/edit/', TaskUpdateView.as_view(), name='task_update'), path('task/<int:pk>/delete/', TaskDeleteView.as_view(), name='task_delete'), path('status/', StatusIndexView.as_view(), name='status_index'), path('status/create/', StatusCreateView.as_view(), name='status_create'), path('status/<int:pk>/edit/', StatusUpdateView.as_view(), name='status_update'), path('status/<int:pk>/delete', StatusDeleteView.as_view(), name='status_delete'), path('type/', TypeIndexView.as_view(), name='type_index'), path('type/create/', TypeCreateView.as_view(), name='type_create'), path('type/<int:pk>/edit/', TypeUpdateView.as_view(), name='type_update'), path('type/<int:pk>/delete', TypeDeleteView.as_view(), name='type_delete'), path('project/', ProjectIndexView.as_view(), name='project_index'), path('project/<int:pk>', ProjectView.as_view(), name='project_view'), path('project/create/', ProjectCreateView.as_view(), name='project_create'),
from django.urls import path from webapp.views import (IndexView, TaskView, CreateTask, UpdateTask, DeleteTask, ProjectView, ProjectDetailView, ProjectCreate, ProjectUpdate, ProjectDelete, AddUser) app_name = 'project' urlpatterns = [ path('tracker/', IndexView.as_view(), name='list-task'), path('<int:pk>/tracker/view/', TaskView.as_view(), name='view-task'), path('<int:pk>/tracker/add/', CreateTask.as_view(), name='add-task'), path('<int:pk>/tracker/update/', UpdateTask.as_view(), name='update-task'), path('<int:pk>/tracker/delete/', DeleteTask.as_view(), name='delete-task'), path('', ProjectView.as_view(), name='list'), path('<int:pk>/', ProjectDetailView.as_view(), name='view'), path('add/', ProjectCreate.as_view(), name='add'), path('<int:pk>/update/', ProjectUpdate.as_view(), name='update'), path('<int:pk>/delete/', ProjectDelete.as_view(), name='delete'), path('project/add/<int:pk>/', AddUser.as_view(), name='add-user'), # path('<int:pk>/project/delete/', DeleteUser.as_view(), name='delete-user'), ]
2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin from django.urls import path from webapp.views import IndexView, TaskCreateView, TaskUpdateView, TaskDeleteView, TaskView, StatusList, StatusCreateView, StatusDeleteView, StatusUpdateView, TypeList, TypeCreateView, TypeUpdateView, TypeDeleteView urlpatterns = [ path('admin/', admin.site.urls), path('', IndexView.as_view(), name='index'), path('article/<int:pk>/', TaskView.as_view(), name='task_view'), path('articles/add/', TaskCreateView.as_view(), name='task_add'), path('article/<int:pk>/edit/', TaskUpdateView.as_view(), name='task_update'), path('article/<int:pk>/delete/', TaskDeleteView.as_view(), name='task_delete'), path('status/', StatusList.as_view(), name='status_list'), path('statuses/add/', StatusCreateView.as_view(), name='status_add'), path('status/<int:pk>/edit/', StatusUpdateView.as_view(), name='status_update'), path('status/<int:pk>/delete/', StatusDeleteView.as_view(), name='status_delete'),
from django.urls import path from webapp.views import CompanyData, TaskView, SaveInDataBase, GetFiles app_name = 'webapp' urlpatterns = [ path('', CompanyData.as_view(), name='data'), path('get-files/', GetFiles.as_view(), name='get_files'), path('save-in-base/', SaveInDataBase.as_view(), name='Save_in_base'), path('task/<str:task_id>/', TaskView.as_view(), name='task'), ]
from django.urls import path from webapp.views import TaskView, CreateTaskView, EditTaskView, IndexView, DeleteTaskView, StatusAddView, \ EditStatusView, DeleteStatusView, TypeAddView, EditTypeView, DeleteTypeView, ProjectsView, ProjectView, \ ProjectCreateView, ProjectEditView, ProjectDeleteView urlpatterns = [ path('', IndexView.as_view(), name='main_page'), path('task/<int:pk>/', TaskView.as_view(), name='view task'), path('project/<int:pk>/task/create/', CreateTaskView.as_view(), name='create task'), path('task/<int:pk>/edit/', EditTaskView.as_view(), name='edit task'), path('task/<int:pk>/delete/', DeleteTaskView.as_view(), name='delete task'), path('status/add/', StatusAddView.as_view(), name='add status'), path('status/<int:pk>/edit/', EditStatusView.as_view(), name='edit status'), path('status/<int:pk>/delete/', DeleteStatusView.as_view(), name='delete status'), path('types/add/', TypeAddView.as_view(), name='add type'), path('types/<int:pk>/edit/', EditTypeView.as_view(), name='edit type'), path('types/<int:pk>/delete/', DeleteTypeView.as_view(), name='delete type'), path('projects/', ProjectsView.as_view(), name='view projects'), path('project/<int:pk>/', ProjectView.as_view(), name='view project'), path('project/create/', ProjectCreateView.as_view(), name='create project'), path('project/<int:pk>/edit/', ProjectEditView.as_view(), name='edit project'), path('project/<int:pk>/delete/', ProjectDeleteView.as_view(), name='delete project'), ] app_name='webapp'
from webapp.views import (IndexView, ProjectView, ProjectCreateView, TaskCreateView, TaskView, TaskUpdateView, TaskDeleteView, ProjectUpdateView, ProjectDeleteView, ProjectUserAdd) app_name = 'webapp' urlpatterns = [ path('', IndexView.as_view(), name='project-list'), path('<int:pk>/', ProjectView.as_view(), name='project-view'), path('<int:pk>/update/', ProjectUpdateView.as_view(), name='project-update'), path('create/', ProjectCreateView.as_view(), name='project-create'), path('<int:pk>/delete/', ProjectDeleteView.as_view(), name='project-delete'), path('<int:pk>/tasks/create/', TaskCreateView.as_view(), name='task-create'), path('tasks/<int:pk>/', TaskView.as_view(), name='task-view'), path('tasks/<int:pk>/update/', TaskUpdateView.as_view(), name='task-update'), path('tasks/<int:pk>/delete/', TaskDeleteView.as_view(), name='task-delete'), path('<int:pk>user/add/', ProjectUserAdd.as_view(), name='project-user-add') ]
IndexView, TaskView, TaskAddView, TaskUpdateView, TaskDeleteView, IndexViewProject, ProjectView, ProjectCreate, ProjectDeleteView, ProjectUpdateView, UserUpdate, ) urlpatterns = [ path('index/', IndexView.as_view(), name='index_tasks'), path('task/<int:id>/', TaskView.as_view(), name='task'), path('project/<int:id>/task/add/', TaskAddView.as_view(), name='task_add'), path('task/<int:id>/update/', TaskUpdateView.as_view(), name='task_update'), path('task/<int:id>/delete/', TaskDeleteView.as_view(), name='task_delete'), path('', IndexViewProject.as_view(), name='index_project'), path('project/<int:id>/', ProjectView.as_view(), name='project'), path('project/create/', ProjectCreate.as_view(), name='project_create'), path('project/<int:id>/delete/', ProjectDeleteView.as_view(), name='project_delete'), path('project/<int:id>/update/', ProjectUpdateView.as_view(), name='project_update'), path('project/<int:id>/user/add/', UserUpdate.as_view(), name='user_add'),
from django.urls import path from webapp.views import IndexView, TaskCreateView, TaskView, TaskUpdateView, TaskDeleteView, StatusIndexView, \ StatusCreateView, StatusUpdateView, StatusDeleteView, TypeIndexView, TypeCreateView, TypeUpdateView, \ TypeDeleteView, ProjectIndexView, ProjectView, ProjectCreateView, ProjectUpdateView, ProjectDeleteView, \ ProjectUsersUpdateView urlpatterns = [ path('', IndexView.as_view(), name='index'), path('issue/<int:pk>/', TaskView.as_view(), name='task_view'), path('issue/add/project/<int:pk>/', TaskCreateView.as_view(), name="task_add"), path('issue/<int:pk>/update/', TaskUpdateView.as_view(), name='task_update'), path('issue/<int:pk>/delete/', TaskDeleteView.as_view(), name='task_delete'), path('status', StatusIndexView.as_view(), name='status'), path('status/add/', StatusCreateView.as_view(), name='status_add'), path('status/<int:pk>/update', StatusUpdateView.as_view(), name='status_update'), path('status/<int:pk>/delete', StatusDeleteView.as_view(), name='status_delete'), path('type', TypeIndexView.as_view(), name='type'), path('type/add/', TypeCreateView.as_view(), name='type_add'), path('type/<int:pk>/update/', TypeUpdateView.as_view(), name='type_update'), path('type/<int:pk>/delete', TypeDeleteView.as_view(), name='type_delete'), path('project', ProjectIndexView.as_view(), name='project'), path('project/<int:pk>/', ProjectView.as_view(), name='project_view'), path('project/add/', ProjectCreateView.as_view(), name='project_create'), path('project/<int:pk>/update', ProjectUpdateView.as_view(), name='project_update'), path('project/<int:pk>/delete', ProjectDeleteView.as_view(), name='project_delete'), path('users/<int:pk>/update', ProjectUsersUpdateView.as_view(), name='users_update') ] app_name = 'webapp'