Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
UmSenhorQualquer committed Sep 2, 2019
1 parent 45c1c35 commit 03a4825
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions docs/source/getting-started/installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,38 @@ django-allauth is a reusable Django app that allows for both local and social au
To make it work with Orquestra follow the instructions described `@django-allauth documentation
<http://django-allauth.readthedocs.io/en/latest/installation.html>`_.

Typical django-allauth configuration
______________________________________

.. code:: shell
pip install django-allauth
Add the next configuration to your Django project setttings.

.. code:: python
...
...
INSTALLED_APPS = [
...
'allauth',
'allauth.account',
'allauth.socialaccount',
'allauth.socialaccount.providers.google',
'allauth.socialaccount.providers.facebook',
'django.contrib.sites',
...
]
AUTHENTICATION_BACKENDS = [
'django.contrib.auth.backends.ModelBackend',
'allauth.account.auth_backends.AuthenticationBackend',
]
LOGIN_URL = '/accounts/login/'
LOGIN_REDIRECT_URL = '/'
LOGIN_URL = '/accounts/login/'
LOGIN_REDIRECT_URL = '/'
Add the next configuration to the **local_settings.py** file to configure **orquestra** to require always authentication before accessing the applications.

Expand Down

0 comments on commit 03a4825

Please sign in to comment.