From e30c821ff3cc972e91aef2ae4b59886e88c82a31 Mon Sep 17 00:00:00 2001 From: Evan Tung Date: Tue, 27 Jun 2023 21:07:56 -0700 Subject: [PATCH] remove urls.py in communities --- community/urls.py | 6 ------ sibyl/urls.py | 3 ++- 2 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 community/urls.py diff --git a/community/urls.py b/community/urls.py deleted file mode 100644 index 12d3fe2..0000000 --- a/community/urls.py +++ /dev/null @@ -1,6 +0,0 @@ -from django.urls import path -from community.views import CommunityView - -urlpatterns = [ - path("", CommunityView.as_view()) -] diff --git a/sibyl/urls.py b/sibyl/urls.py index 0a19b8c..3e0b48f 100644 --- a/sibyl/urls.py +++ b/sibyl/urls.py @@ -19,10 +19,11 @@ from django.views.generic import TemplateView from rest_framework.schemas import get_schema_view from rest_framework.permissions import AllowAny +from community.views import CommunityView urlpatterns = [ path('admin/', admin.site.urls), - path('community', include("community.urls")), + path('community', CommunityView.as_view()), path('psychopass/', include("psychopass.urls")), path('dominator/', include("dominator.urls")), path('openapi-schema.yml', get_schema_view(