https://github.com/dynamo63/django_allauth
https://github.com/dynamo63/django_allauth
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dynamo63/django_allauth
- Owner: dynamo63
- Created: 2019-05-05T18:06:53.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-05T18:34:54.000Z (about 7 years ago)
- Last Synced: 2025-07-23T12:33:59.904Z (11 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# django_allauth
virtualenv -p python3 env
pip install django
pip install django-allauth
django-admin startproject project
python manage.py migrate
python manage.py runserver
# (env)project/settings.py
Add the django-allauth at settings.py
INSTALLED_APPS = [
...
'django.contrib.sites',
'allauth',
'allauth.account',
'allauth.socialaccount',
'allauth.socialaccount.providers.github',
]
AUTHENTICATION_BACKENDS = (
"django.contrib.auth.backends.ModelBackend",
"allauth.account.auth_backends.AuthenticationBackend",
)
SITE_ID = 1
LOGIN_REDIRECT_URL = 'home'
# (env)project/urls.py
....
path('accounts/', include('allauth.urls')),
...
python manage.py migrate
Remplir le formulaire https://github.com/settings/applications/new
Plus d'info sur https://wsvincent.com/django-allauth-tutorial/