Fixed api/v1 url not working and added initial djoser url

This commit is contained in:
keannu125 2023-02-28 01:02:43 +08:00
parent b95f17a358
commit 2234100f17
3 changed files with 4 additions and 3 deletions

View file

@ -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'))
]

View file

@ -38,7 +38,8 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework',
'djoser'
'djoser',
'api',
]
MIDDLEWARE = [

View file

@ -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'))
]