from django.conf.urls import url from task.views import TaskList task_urlpatterns = [ url(r'^$', TaskList.as_view(), name='list'), ]
from django.conf.urls import patterns, include, url from task.views import TaskList, get_task_list, task # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns( "", url(r"^$", TaskList.as_view(), name="TaskList"), url(r"^task/", task, name="task"), url(r"^tasks/", get_task_list, name="get_task_list"), url(r"^admin/", include(admin.site.urls)), )
from django.conf.urls import url from task.views import TaskDetail, TaskList, UserDetail, UserList from rest_framework.urlpatterns import format_suffix_patterns from rest_framework.authtoken import views urlpatterns = [ url(r'^tasks/$', TaskList.as_view(), name='task-list'), url(r'^tasks/(?P<pk>[0-9]+)/$', TaskDetail.as_view()), url(r'^users/$', UserList.as_view()), url(r'^users/(?P<pk>[0-9]+)/$', UserDetail.as_view()), url(r'^api-token-auth/', views.obtain_auth_token) ] urlpatterns = format_suffix_patterns(urlpatterns)
urlpatterns = [ path('', home, name="home"), path('personaltask/', personaltask), path('addtask/', addtask), path('delete/', deletetask), path('edit/', edittask), path('work/', work), path('workadd/', workadd), path('addsubmit/', addsubmit), path('editwork/', editwork), path('deletework/', deletework), path('data/', Totaldata.as_view()), path('list/<int:pk>', snippet_list), path('listdata/<int:pk>', listdata), path('tasklist/<int:pk>', TaskList.as_view()), path('get/<int:pk>', gt), path('pst/', pst), path('put/<int:pk>', put), path('delete/<int:pk>', delete), path('apiget/<int:pk>', GenericAPIView.as_view()), path('taskapi/', TaskAPI.as_view()), path('taskapi/<int:id>', TaskAPI.as_view()), path('detailapi/<int:pk>', DetailApi.as_view()), path('taskcreate/', TaskCreate.as_view()), path('user/', usen), path('userapi/<int:pk>', UserApi.as_view()), path('usergen/<int:pk>', UserGen.as_view()), path('demoapi/', DemoApi.as_view()), path('ano/<int:pk>', Another.as_view()), path('taskmixin/<int:pk>', TaskMixin.as_view()),
from django.urls import path from task.views import TaskList, NewTaskView, RemoveTask, PinTask urlpatterns = [ path('', TaskList.as_view(), name="task-list-view"), path('new', NewTaskView.as_view(), name="task-new"), path('remove', RemoveTask, name="task-remove"), path('pin', PinTask, name="task-pin"), ]
from django.urls import path from task.views import TaskList, TaskComplete, TaskDelete urlpatterns = [ path('', TaskList.as_view(), name='task_list_url'), path('<str:id>/completed/', TaskComplete.as_view(), name='task_complete_url'), path('<str:id>/delete/', TaskDelete.as_view(), name='task_delete_url'), ]
# urls.py from django.urls import path from task.views import TaskList, TaskDetail, TaskCreate, TaskUpdate, TaskDelete urlpatterns = [ path('', TaskList.as_view(), name='tasks'), path('crea/', TaskCreate.as_view(), name='task_create'), path('aggiorna/<int:pk>/', TaskUpdate.as_view(), name='task_update'), path('elimina/<int:pk>/', TaskDelete.as_view(), name='task_delete'), ]