Add django-rest-auth

This commit is contained in:
Tanner Collin 2020-01-06 23:14:41 +00:00
parent c5b0a93927
commit 0232258869
2 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,7 @@ INSTALLED_APPS = [
'rest_framework', 'rest_framework',
'rest_framework.authtoken', 'rest_framework.authtoken',
'apiserver.api', 'apiserver.api',
'rest_auth',
] ]
MIDDLEWARE = [ MIDDLEWARE = [

View File

@ -1,3 +1,4 @@
from django.conf.urls import url
from django.contrib import admin from django.contrib import admin
from django.urls import include, path from django.urls import include, path
from rest_framework import routers from rest_framework import routers
@ -11,4 +12,5 @@ urlpatterns = [
path('', include(router.urls)), path('', include(router.urls)),
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('api-auth/', include('rest_framework.urls')), path('api-auth/', include('rest_framework.urls')),
url(r'^rest-auth/', include('rest_auth.urls')),
] ]