December 2019

2019-12-30 12:27 (6 years ago)
Fix: cross-origin session cookie not sent after upgrading to Django 3 (SESSION_COOKIE_SAMESITE)

Django 3 defaults SESSION_COOKIE_SAMESITE to 'Lax', so session cookies stop being sent on cross-origin requests. Set it to None and log in again to restore them, at the cost of weaker security.

Django
2019-12-25 06:14 (6 years ago)
Upgrading to Django 3: from_db_value() missing 1 required positional argument: 'context' Error Occurs

Fix `from_db_value() missing 1 required positional argument: 'context'` on custom Django fields after upgrading to Django 3 — adapt to the removed `context` arg.

Categories

Archive