From 906c42b0837ec3efe6e83c6f09450db8fff8c30a Mon Sep 17 00:00:00 2001 From: Hironsan Date: Fri, 4 Feb 2022 15:11:49 +0900 Subject: [PATCH] Move task.py to api --- backend/api/urls.py | 4 ++-- backend/api/{views/task.py => views.py} | 0 backend/api/views/__init__.py | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename backend/api/{views/task.py => views.py} (100%) delete mode 100644 backend/api/views/__init__.py diff --git a/backend/api/urls.py b/backend/api/urls.py index 7eca385e..5ae1fc02 100644 --- a/backend/api/urls.py +++ b/backend/api/urls.py @@ -1,11 +1,11 @@ from django.urls import path -from .views import task +from .views import TaskStatus urlpatterns = [ path( route='tasks/status/', - view=task.TaskStatus.as_view(), + view=TaskStatus.as_view(), name='task_status' ), ] diff --git a/backend/api/views/task.py b/backend/api/views.py similarity index 100% rename from backend/api/views/task.py rename to backend/api/views.py diff --git a/backend/api/views/__init__.py b/backend/api/views/__init__.py deleted file mode 100644 index e69de29b..00000000