Esempio n. 1
0
         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"),
    path("projects/add", ProjectCreateView.as_view(), name="project_add"),
    path("projects/<int:pk>/edit/",
         ProjectUpdateView.as_view(),
         name="project_update"),
    path("projects/<int:pk>/delete/",
         ProjectDeleteView.as_view(),
         name="project_delete")
]

app_name = "webapp"
Esempio n. 2
0
from django.urls import path
from webapp.views import (IndexView, TracerView, TracerDeleteView,
                          TracerUpdateView, ProjectTracerCreate,
                          ProjectCreateView, ProjectIndexView, ProjectView,
                          ProjectDeleteView, ProjectUpdateView, UserUpdateView)

app_name = 'project'

urlpatterns = [
    path('tracers/', IndexView.as_view(), name='list'),
    path('<int:pk>/', TracerView.as_view(), name='view'),
    path('<int:pk>/update/', TracerUpdateView.as_view(), name='update'),
    path('<int:pk>/delete/', TracerDeleteView.as_view(), name='delete'),
    path('user/<int:pk>', UserUpdateView.as_view(), name="user_update"),
    path('project/add/', ProjectCreateView.as_view(), name='project_add'),
    path('project_tracer/<int:pk>/add/',
         ProjectTracerCreate.as_view(),
         name='project_tracer_add'),
    path('', ProjectIndexView.as_view(), name='project_list'),
    path('project/<int:pk>/', ProjectView.as_view(), name='project_view'),
    path('project/<int:pk>/update/',
         ProjectUpdateView.as_view(),
         name='project_update'),
    path('project/<int:pk>/delete/',
         ProjectDeleteView.as_view(),
         name='project_delete'),
]
Esempio n. 3
0
         IssueDeleteView.as_view(),
         name='issue_delete'),
    path('statuses/', StatusListView.as_view(), name='statuses'),
    path('status/create/', StatusCreateView.as_view(), name='status_create'),
    path('status/update/<int:pk>/',
         StatusUpdateView.as_view(),
         name='status_update'),
    path('status/delete/<int:pk>/',
         StatusDeleteView.as_view(),
         name='status_delete'),
    path('types/', TypeListView.as_view(), name='types'),
    path('types/create/', TypeCreateView.as_view(), name='type_create'),
    path('type/update/<int:pk>/', TypeUpdateView.as_view(),
         name='type_update'),
    path('type/delete/<int:pk>/', TypeDeleteView.as_view(),
         name='type_delete'),
    path('projects/', ProjectListView.as_view(), name='projects'),
    path('project/create/', ProjectCreateView.as_view(),
         name='project_create'),
    path('project/<int:pk>/', ProjectDetailView.as_view(),
         name='project_view'),
    path('project/update/<int:pk>/',
         ProjectUpdateView.as_view(),
         name='project_update'),
    path('project/delete/<int:pk>/',
         ProjectDeleteView.as_view(),
         name='project_delete'),
    path('team/update/<int:pk>', ChangeTeamView.as_view(), name='team_update')
]

app_name = 'webapp'
Esempio n. 4
0
    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(),
         name='type_delete'),
    path('projects', ProjectIndexView.as_view(), name='project_index'),
    path('projects/project/<int:pk>',
         ProjectView.as_view(),
         name='project_view'),
    path('projects/project/add/',
         ProjectCreateView.as_view(),
         name='project_add'),
    path('projects/project/<int:pk>/update/',
         ProjectUpdateView.as_view(),
         name='project_update'),
    path('projects/project/<int:pk>/delete/',
         ProjectDeleteView.as_view(),
         name='project_delete'),
]

app_name = 'webapp'
from django.conf import settings
from django.contrib import admin
from django.urls import path, include
from webapp.views import IndexView, TaskCreateView, TaskDeleteView, TaskView, TaskUpdateView, \
    ProjectView, ProjectCreateView, TaskListView, ProjectUpdateView, ProjectDeleteView, ProjectPermissonUpdateView
from django.contrib.auth.views import LoginView, LogoutView
# from accounts.views import login_view, logout_view

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', IndexView.as_view(), name='index'),
    path(
        'project/',
        include([
            path('<int:pk>/', ProjectView.as_view(), name='project_view'),
            path('add/', ProjectCreateView.as_view(), name='project_create'),
            path('<int:pk>/update',
                 ProjectUpdateView.as_view(),
                 name='project_update'),
            path('<int:pk>/delete',
                 ProjectDeleteView.as_view(),
                 name='project_delete'),
            path('<int:pk>/tasks/add/',
                 TaskCreateView.as_view(),
                 name='task_create'),
            path('<int:pk>/edit_user',
                 ProjectPermissonUpdateView.as_view(),
                 name='project_user_edit')
        ])),
    path('tasks/', TaskListView.as_view(), name='task_list'),
    path('tasks/<int:pk>/', TaskView.as_view(), name='task_view'),
Esempio n. 6
0
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'
Esempio n. 7
0
from django.urls import path

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(),