Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pennersr/django-allauth/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This page documents breaking changes that may require code updates when upgrading django-allauth. Always review these changes before upgrading to a new major version.Version 65.x
IP Address Detection (65.14.2)
What Changed: The default IP address detection no longer trustsX-Forwarded-For header.
Impact: Rate limiting may not work correctly if not configured properly.
Required Action: Configure IP detection for your deployment architecture.
settings.py
- Identify your deployment architecture (direct, behind nginx, behind load balancer, etc.)
- Choose the appropriate configuration method
- Test rate limiting functionality
- Monitor for any IP detection issues
Version 64.x
Python 3.7 Support Dropped
What Changed: Python 3.8+ is now required. Impact: Applications running on Python 3.7 or earlier cannot use django-allauth 64.x+. Required Action: Upgrade to Python 3.8 or higher before upgrading django-allauth.Template System Changes
What Changed: Introduction of element-based styling system. Impact: Custom templates may need updates to use the new system. Migration Path: Option 1: Adopt New System (Recommended)settings.py
templates/allauth/elements/button.html
settings.py
Version 63.x
Django 3.2 Support Dropped
What Changed: Django 4.2+ is now required. Impact: Projects on Django 3.2 or earlier need to upgrade Django first. Required Action: Upgrade to Django 4.2 LTS before upgrading django-allauth.Version 62.x
Headless API Token Format
What Changed: JWT token structure and validation updated. Impact: Existing tokens may need to be refreshed. Migration Path:- Update frontend to handle new token format
- Existing tokens remain valid until expiry
- New tokens use updated format
Version 60.x
MFA Models Changes
What Changed: MFA models were restructured for better extensibility. Impact: Custom MFA implementations need updates. Required Action: Run migrations and update custom MFA code.Common Migration Patterns
Updating Settings
Rate Limiting Configuration
Rate Limiting Configuration
Old Approach (Pre-65.x):New Approach (65.x+):
Template Customization
Template Customization
Old Approach (Pre-64.x):New Approach (64.x+):Or use element overrides:
templates/account/login.html
templates/allauth/layouts/entrance.html
templates/allauth/elements/button.html
Updating Code
Adapter Methods
Adapter Methods
Some adapter methods have been updated. Check if you override any:
Signal Handlers
Signal Handlers
Signal arguments remain backward compatible, but new parameters added:
Testing for Breaking Changes
Automated Detection
Add these tests to detect breaking changes:tests/test_compatibility.py
Manual Testing
After upgrading, test these critical flows:Version Compatibility Matrix
| django-allauth | Python | Django | Notes |
|---|---|---|---|
| 65.x | 3.8+ | 4.2, 5.0, 5.1, 5.2, 6.0 | Current version |
| 64.x | 3.8+ | 4.2, 5.0, 5.1 | Template system changes |
| 63.x | 3.8+ | 4.2, 5.0 | Django 3.2 support dropped |
| 62.x | 3.7+ | 3.2, 4.0, 4.1 | Last version with Python 3.7 |
Getting Help
If you encounter issues with breaking changes:Upgrade Guide
Step-by-step upgrade instructions
Changelog
Detailed version history
Stack Overflow
Ask the community
Issue Tracker
Report upgrade issues
