Version 2.0.0
What's Changed
- Add support for Python 3.13 and drop support for Python 3.8.
Backward-incompatible changes:
- The IP is now read directly from the value of
REMOTE_ADDR(instead of relying on django-ipware) for the same reason Django
removedSetRemoteAddrFromForwardedFormiddleware in 1.1. If you are using a reverse proxy, you should configure it to pass the real IP address in theREMOTE_ADDRheader, or you can write a custom version ofSetRemoteAddrFromForwardedFormiddleware which suits your environment. session.locationandsession.location_infoare now properties instead of methods.session.deviceis now a property instead of a method and returns string.- The device object can be accessed using the new property
session.device_info. - User agent parsing is now done using
ua-parserinstead ofuser-agents.- The device object is now an instance of
ua_parser.core.Resultinstead ofuser_agents.parsers.UserAgent.
- The device object is now an instance of
Full Changelog: v1.1.5...v2.0.0