mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-25 18:43:44 +03:00
Added `django.contrib.sites
and SITE_ID setting requirements of
allauth
` to installation instructions
Fixes #218
This commit is contained in:
parent
c4e7bdc77f
commit
8812ba11af
|
@ -40,17 +40,22 @@ Registration (optional)
|
||||||
|
|
||||||
1. If you want to enable standard registration process you will need to install ``django-allauth`` by using ``pip install django-rest-auth[with_social]``.
|
1. If you want to enable standard registration process you will need to install ``django-allauth`` by using ``pip install django-rest-auth[with_social]``.
|
||||||
|
|
||||||
2. Add ``allauth``, ``allauth.account`` and ``rest_auth.registration`` apps to INSTALLED_APPS in your django settings.py:
|
2. Add ``django.contrib.sites``, ``allauth``, ``allauth.account`` and ``rest_auth.registration`` apps to INSTALLED_APPS in your django settings.py:
|
||||||
|
|
||||||
|
3. Add ``SITE_ID = 1`` to your django settings.py
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
INSTALLED_APPS = (
|
INSTALLED_APPS = (
|
||||||
...,
|
...,
|
||||||
|
'django.contrib.sites',
|
||||||
'allauth',
|
'allauth',
|
||||||
'allauth.account',
|
'allauth.account',
|
||||||
'rest_auth.registration',
|
'rest_auth.registration',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
SITE_ID = 1
|
||||||
|
|
||||||
3. Add rest_auth.registration urls:
|
3. Add rest_auth.registration urls:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
@ -79,6 +84,7 @@ Using ``django-allauth``, ``django-rest-auth`` provides helpful class for creati
|
||||||
'rest_framework.authtoken',
|
'rest_framework.authtoken',
|
||||||
'rest_auth'
|
'rest_auth'
|
||||||
...,
|
...,
|
||||||
|
'django.contrib.sites',
|
||||||
'allauth',
|
'allauth',
|
||||||
'allauth.account',
|
'allauth.account',
|
||||||
'rest_auth.registration',
|
'rest_auth.registration',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user