Add django-rest-auth

master
Tanner Collin 4 years ago
parent c5b0a93927
commit 0232258869
  1. 1
      apiserver/apiserver/settings.py
  2. 2
      apiserver/apiserver/urls.py

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

Loading…
Cancel
Save