Skip to content

Commit 8812ba1

Browse files
Henk KraalHenk Kraal
authored andcommitted
Added django.contrib.sites and SITE_ID setting requirements of allauth to installation instructions
Fixes #218
1 parent c4e7bdc commit 8812ba1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/installation.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,21 @@ Registration (optional)
4040

4141
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]``.
4242

43-
2. Add ``allauth``, ``allauth.account`` and ``rest_auth.registration`` apps to INSTALLED_APPS in your django settings.py:
43+
2. Add ``django.contrib.sites``, ``allauth``, ``allauth.account`` and ``rest_auth.registration`` apps to INSTALLED_APPS in your django settings.py:
44+
45+
3. Add ``SITE_ID = 1`` to your django settings.py
4446

4547
.. code-block:: python
4648
4749
INSTALLED_APPS = (
4850
...,
51+
'django.contrib.sites',
4952
'allauth',
5053
'allauth.account',
5154
'rest_auth.registration',
5255
)
56+
57+
SITE_ID = 1
5358
5459
3. Add rest_auth.registration urls:
5560

@@ -79,6 +84,7 @@ Using ``django-allauth``, ``django-rest-auth`` provides helpful class for creati
7984
'rest_framework.authtoken',
8085
'rest_auth'
8186
...,
87+
'django.contrib.sites',
8288
'allauth',
8389
'allauth.account',
8490
'rest_auth.registration',

0 commit comments

Comments
 (0)