Setup up dj-rest-auth

main
Tanner Collin 3 years ago
parent 1f729f073c
commit 69a7dd3816
  1. 4
      server/server/settings.py
  2. 4
      server/server/urls.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 = [

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

Loading…
Cancel
Save