Setup up dj-rest-auth

This commit is contained in:
Tanner Collin 2021-04-11 16:51:47 -06:00
parent 1f729f073c
commit 69a7dd3816
2 changed files with 4 additions and 4 deletions

View File

@ -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 = [

View File

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