ForgeAI Dokumentacija Help

11.3 Dodavanje Google i GitHub Autentifikacije

Instalacija potrebnih paketa:

pip install "django-allauth[socialaccount]"

Dodavanje aplikacija u settings.py:

INSTALLED_APPS = [ ... 'allauth.socialaccount.providers.google', 'allauth.socialaccount.providers.github', ... ]
Auth 1
Auth 2
Auth 3

Kroz admin dashboard se može uspostaviti autentifikacija putem Google i GitHub providera.

Auth 4
Auth 5
Auth 6

Dokumentacija za Allauth

Allauth Dokumentacija

/ForgeAI # Root repozitorija ├── /venv │ ├── pyvenv.cfg │ ├── /Lib │ │ ├── /allauth │ │ │ ├── /templates │ │ │ │ ├── (HTML Templates)
/ForgeAI # Root repozitorija ├── /ForgeAI │ ├── /templates │ │ ├── /allauth │ │ │ ├── /elements │ │ │ │ ├── alert.html │ │ │ │ ├── h1.html │ │ │ │ ├── button.html │ │ │ │ ├── ... │ │ │ ├── /layouts │ │ │ │ ├── base.html │ │ │ │ ├── entrance.html │ │ │ │ ├── manage.html

Templates se mogu stilizirati na osnovu ove dokumentacije.

Last modified: 04 June 2024