Setup up dj-rest-auth
This commit is contained in:
parent
1f729f073c
commit
69a7dd3816
|
@ -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…
Reference in New Issue
Block a user