Add django-allauth for registrations

This commit is contained in:
Tanner Collin 2020-01-07 08:23:06 +00:00
parent 39931077cc
commit 5526cf708b
2 changed files with 7 additions and 0 deletions

View File

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

View File

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