Add django-allauth for registrations

master
Tanner Collin 4 years ago
parent 39931077cc
commit 5526cf708b
  1. 6
      apiserver/apiserver/settings.py
  2. 1
      apiserver/apiserver/urls.py

@ -46,10 +46,14 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'rest_framework',
'rest_framework.authtoken',
'apiserver.api',
'rest_auth',
'allauth',
'allauth.account',
'rest_auth.registration',
]
MIDDLEWARE = [
@ -203,3 +207,5 @@ LOGGING = {
},
}
}
SITE_ID = 1

@ -13,4 +13,5 @@ urlpatterns = [
path('admin/', admin.site.urls),
path('api-auth/', include('rest_framework.urls')),
url(r'^rest-auth/', include('rest_auth.urls')),
url(r'^rest-auth/registration/', include('rest_auth.registration.urls'))
]

Loading…
Cancel
Save