Overview
This guide helps you upgrade django-allauth to newer versions safely and efficiently. Always review the Changelog and Breaking Changes before upgrading.General Upgrade Process
Review the Changelog
Check the Changelog for all versions between your current version and the target version. Pay special attention to:
- Security notices
- Breaking changes
- Deprecated features
- New configuration requirements
Update Dependencies
Update django-allauth in your requirements file:Check if you need to update optional dependencies:
Update Configuration
Review and update your settings based on the changelog:
- Add new required settings
- Update deprecated settings
- Review security-related configuration changes
Upgrading to 65.x
Security: IP Address Detection
You must configure IP detection based on your deployment: Option 1: Configure Trusted Proxy Countsettings.py
settings.py
adapters.py
Django 6.0 Support
Django 6.0 is officially supported as of version 65.13.1. No configuration changes required.Headless JWT Algorithm
The JWT algorithm is now configurable (version 65.14.0):settings.py
Upgrading to 64.x
Python Version Requirements
Django Allauth 64.x requires Python 3.8 or higher. If you’re on Python 3.7 or earlier:- Upgrade Python to 3.8+
- Test your application thoroughly
- Then upgrade django-allauth
Template Changes
Version 64 introduced the element-based styling system. If you have custom templates:settings.py
settings.py
Version-Specific Upgrade Notes
65.14.x Security Updates
65.14.x Security Updates
64.x Breaking Changes
64.x Breaking Changes
63.x to 64.x
63.x to 64.x
Settings Reorganization
Some settings were renamed or reorganized:Testing Your Upgrade
Automated Tests
Add these tests to verify the upgrade:tests.py
Manual Testing Checklist
- Signup with email
- Login with username/email
- Password reset flow
- Email verification
- Social login (test each provider you use)
- MFA enrollment and authentication
- Account management (change email, change password)
- Headless API endpoints (if applicable)
- Rate limiting works correctly
- Admin panel access
Rollback Plan
If issues occur after upgrading:Getting Help
If you encounter issues during upgrade:Stack Overflow
Ask questions with the django-allauth tag
Issue Tracker
Report bugs or unexpected behavior
Breaking Changes
Review detailed breaking changes
Changelog
See all version changes
