Installation¶
Requirements¶
Before installing, make sure you have:
- Python 3.9 or higher
- Django 3.1 or higher
- A Google Cloud project with OAuth2 credentials (setup guide)
Install the Package¶
What Gets Installed¶
graph TD
A[django-gauth] --> B[google-auth-oauthlib]
B --> C[google-auth]
B --> D[requests-oauthlib]
C --> E[cachetools]
C --> F[pyasn1-modules]
A --> G[Django >= 3.1]
style A fill:#4CAF50,color:white,stroke:none
style G fill:#092E20,color:white,stroke:none
Lightweight
django-gauth has only 2 direct dependencies beyond Django:
google-auth-oauthlib— Google's official OAuth2 libraryDjango— your web framework
Using django-gauth < 0.2.1?
Older releases do not pin google-auth-oauthlib. To avoid PKCE-related OAuth
failures, pin it explicitly in your project's requirements:
Versions 0.2.1 and newer include this pin automatically — just upgrade and
you're covered.
Verify Installation¶
After installing, confirm it's available: