Add django-rest-auth
This commit is contained in:
@@ -49,6 +49,7 @@ INSTALLED_APPS = [
|
||||
'rest_framework',
|
||||
'rest_framework.authtoken',
|
||||
'apiserver.api',
|
||||
'rest_auth',
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
|
@@ -1,3 +1,4 @@
|
||||
from django.conf.urls import url
|
||||
from django.contrib import admin
|
||||
from django.urls import include, path
|
||||
from rest_framework import routers
|
||||
@@ -11,4 +12,5 @@ urlpatterns = [
|
||||
path('', include(router.urls)),
|
||||
path('admin/', admin.site.urls),
|
||||
path('api-auth/', include('rest_framework.urls')),
|
||||
url(r'^rest-auth/', include('rest_auth.urls')),
|
||||
]
|
||||
|
Reference in New Issue
Block a user