From 69a7dd3816b5ac7f1a77fc53d24b9bf9d51be217 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sun, 11 Apr 2021 16:51:47 -0600 Subject: [PATCH] Setup up dj-rest-auth --- server/server/settings.py | 4 ++-- server/server/urls.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/server/settings.py b/server/server/settings.py index db7c928..43c4067 100644 --- a/server/server/settings.py +++ b/server/server/settings.py @@ -40,10 +40,10 @@ INSTALLED_APPS = [ 'django.contrib.sites', 'rest_framework', 'rest_framework.authtoken', - 'rest_auth', 'allauth', 'allauth.account', - 'rest_auth.registration', + 'dj_rest_auth', + 'dj_rest_auth.registration', ] MIDDLEWARE = [ diff --git a/server/server/urls.py b/server/server/urls.py index 1f72d34..f4f2c34 100644 --- a/server/server/urls.py +++ b/server/server/urls.py @@ -11,6 +11,6 @@ urlpatterns = [ path('', include(router.urls)), path('admin/', admin.site.urls), path('api-auth/', include('rest_framework.urls', namespace='rest_framework')), - url(r'^rest-auth/', include('rest_auth.urls')), - url(r'^rest-auth/registration/', include('rest_auth.registration.urls')), + path('dj-rest-auth/', include('dj_rest_auth.urls')), + path('dj-rest-auth/registration/', include('dj_rest_auth.registration.urls')) ]