From 2234100f17c2df15ad7a09e4c5bdcde4a1822f7e Mon Sep 17 00:00:00 2001 From: keannu125 Date: Tue, 28 Feb 2023 01:02:43 +0800 Subject: [PATCH] Fixed api/v1 url not working and added initial djoser url --- ivy/api/urls.py | 2 +- ivy/config/settings.py | 3 ++- ivy/config/urls.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ivy/api/urls.py b/ivy/api/urls.py index 63176f3..c99a589 100644 --- a/ivy/api/urls.py +++ b/ivy/api/urls.py @@ -2,5 +2,5 @@ from django.contrib import admin from django.urls import path, include urlpatterns = [ - path('accounts/', include('djoser.urls')) + path('', include('djoser.urls')) ] diff --git a/ivy/config/settings.py b/ivy/config/settings.py index 07c1513..ca36373 100644 --- a/ivy/config/settings.py +++ b/ivy/config/settings.py @@ -38,7 +38,8 @@ INSTALLED_APPS = [ 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', - 'djoser' + 'djoser', + 'api', ] MIDDLEWARE = [ diff --git a/ivy/config/urls.py b/ivy/config/urls.py index 6460ca4..912f223 100644 --- a/ivy/config/urls.py +++ b/ivy/config/urls.py @@ -18,5 +18,5 @@ from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), - path('/api/v1/', include('api.urls')) + path('api/v1/', include('api.urls')) ]