Esempio n. 1
0
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'),
    path('project/<int:pk>/edit/',
"""
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'),
    path('type/', TypeList.as_view(), name='type_list'),
    path('types/add/', TypeCreateView.as_view(), name='type_add'),
    path('type/<int:pk>/edit/', TypeUpdateView.as_view(), name='type_update'),
    path('type/<int:pk>/delete/', TypeDeleteView.as_view(),
         name='type_delete'),
]
Esempio n. 3
0
    TypeView, StatusCreateView, TypeCreateView, StatusUpdateView, TypeUpdateView, TypeDeleteView, StatusDeleteView,\
    ProjectView, ProjectCreateView, ProjectUpdateView, ProjectDeleteView, ProjectDetailView

urlpatterns = [
    path('admin/', admin.site.urls),
    path("", IndexView.as_view(), name="index"),
    path('issue/<int:pk>/', IssueView.as_view(), name='issue_view'),
    path("issue/add/", IssueCreateView.as_view(), name="issue_add"),
    path('issue/<int:pk>/edit/',
         IssueUpdateView.as_view(),
         name='issue_update'),
    path("issue/<int:pk>/delete",
         IssueDeleteView.as_view(),
         name="issue_delete"),
    path("statuses/all", StatusView.as_view(), name="all_statuses"),
    path("statuses/add/", StatusCreateView.as_view(), name="status_add"),
    path('statuses/<int:pk>/edit/',
         StatusUpdateView.as_view(),
         name="status_update"),
    path("types/all", TypeView.as_view(), name="all_types"),
    path("types/add", TypeCreateView.as_view(), name="type_add"),
    path("types/<int:pk>/edit/", TypeUpdateView.as_view(), name="type_update"),
    path('statuses/<int:pk>/delete/',
         StatusDeleteView.as_view(),
         name="status_delete"),
    path('types/<int:pk>/delete/',
         TypeDeleteView.as_view(),
         name="type_delete"),
    path("projects/all", ProjectView.as_view(), name="all_projects"),
    path("projects/<int:pk>", ProjectDetailView.as_view(),
         name="project_view"),
Esempio n. 4
0
    StatusCreateView, StatusDeleteView, StatusUpdateView, StatusView, TypeIndexView, TypeCreateView, TypeDeleteView,\
    TypeUpdateView, TypeView, ProjectIndexView, ProjectView, ProjectCreateView, ProjectUpdateView, ProjectDeleteView

urlpatterns = [
    path('', IndexView.as_view(), name='index'),
    path('issue/add/', IssueCreateView.as_view(), name='issue_add'),
    path('issue/<int:pk>', IssueView.as_view(), name='issue_view'),
    path('issue/<int:pk>/update/',
         IssueUpdateView.as_view(),
         name='issue_update'),
    path('issue/<int:pk>/delete/',
         IssueDeleteView.as_view(),
         name='issue_delete'),
    path('statuses', StatusIndexView.as_view(), name='status_index'),
    path('statuses/status/<int:pk>', StatusView.as_view(), name='status_view'),
    path('statuses/status/add/', StatusCreateView.as_view(),
         name='status_add'),
    path('statuses/status/<int:pk>/update/',
         StatusUpdateView.as_view(),
         name='status_update'),
    path('statuses/status/<int:pk>/delete/',
         StatusDeleteView.as_view(),
         name='status_delete'),
    path('types', TypeIndexView.as_view(), name='type_index'),
    path('types/type/<int:pk>', TypeView.as_view(), name='type_view'),
    path('types/type/add/', TypeCreateView.as_view(), name='type_add'),
    path('types/type/<int:pk>/update/',
         TypeUpdateView.as_view(),
         name='type_update'),
    path('types/type/<int:pk>/delete/',
         TypeDeleteView.as_view(),
Esempio n. 5
0
from django.urls import path
from webapp.views import IndexView, IssueView, IssueCreateView, IssueUpdateView, \
    IssueDeleteView, StatusView, StatusCreateView, StatusUpdateView, StatusDeleteView, TypeView,\
    TypeCreateView, TypeUpdateView, TypeDeleteView
from webapp.views.project_views import ProjectIndex, ProjectView, ProjectCreateView, ProjectUpdateView, \
    ProjectDeleteView, TeamUserDelete

urlpatterns = [
    path('', IndexView.as_view(), name='index'),
    path('issue/<int:pk>/', IssueView.as_view(), name='issue_view'),
    path('issue/<int:pk>/add/', IssueCreateView.as_view(), name='issue_add'),
    path('issue/<int:pk>/update/', IssueUpdateView.as_view(), name='issue_update'),
    path('issue/<int:pk>/delete/', IssueDeleteView.as_view(), name='issue_delete'),

    path('issue/status/', StatusView.as_view(), name='status_view'),
    path('issue/status/add/', StatusCreateView.as_view(), name='status_add'),
    path('issue/status/<int:pk>/update/', StatusUpdateView.as_view(), name='status_update'),
    path('issue/status/<int:pk>/delete/', StatusDeleteView.as_view(), name='status_delete'),

    path('issue/type/', TypeView.as_view(), name='type_view'),
    path('issue/type/add/', TypeCreateView.as_view(), name='type_add'),
    path('issue/type/<int:pk>/update/', TypeUpdateView.as_view(), name='type_update'),
    path('issue/type/<int:pk>/delete/', TypeDeleteView.as_view(), name='type_delete'),

    path('issue/project/', ProjectIndex.as_view(), name='project_index'),
    path('issue/project/<int:pk>/', ProjectView.as_view(), name='project_view'),
    path('issue/project/add/', ProjectCreateView.as_view(), name='project_add'),
    path('issue/project/<int:pk>/update/', ProjectUpdateView.as_view(), name='project_update'),
    path('issue/project/<int:pk>/delete/', ProjectDeleteView.as_view(), name='project_delete'),
    path('project/team/<int:pk>/delete', TeamUserDelete.as_view(), name='team_delete')
]
Esempio n. 6
0
Function views
    1. Add an import:  from my_app import views
    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, TodoView, ToDoListCreateView, ToDoListUpdateView, ToDoListDeleteView, StatusCreateView, StatusView, StatusUpdateView, StatusDeleteView, TypeView, TypeCreateView, TypeUpdateView, TypeDeleteView

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', IndexView.as_view(), name='index'),
    path('lists/<int:pk>/', TodoView.as_view(), name='list_view'),
    path('lists/create', ToDoListCreateView.as_view(), name='list_add'),
    path('list/<int:pk>/edit/', ToDoListUpdateView.as_view(), name='list_update'),
    path('list/<int:pk>/delete/', ToDoListDeleteView.as_view(), name='list_delete'),
    path('lists/status', StatusView.as_view(), name='statuses'),
    path('lists/status/create', StatusCreateView.as_view(), name='status_add'),
    path('list/status/<int:pk>/edit/', StatusUpdateView.as_view(), name='status_update'),
    path('list/status/<int:pk>/delete/', StatusDeleteView.as_view(), name='status_delete'),
    path('lists/type', TypeView.as_view(), name='types'),
    path('lists/type/create', TypeCreateView.as_view(), name='type_add'),
    path('list/type/<int:pk>/edit/', TypeUpdateView.as_view(), name='type_update'),
    path('list/type/<int:pk>/delete/', TypeDeleteView.as_view(), name='type_delete'),
]