Added more instructions for 2.6 upgrade

This commit is contained in:
Antoine Nguyen
2025-09-24 13:51:40 +02:00
parent 6596a37e8f
commit c44d7da534
+13
View File
@@ -151,6 +151,19 @@ Required changes to :file:`settings.py`
'autoconfig.<MY DOMAIN>',
'autodiscover.<MY DOMAIN>',
- Remove ``rest_framework.authentication.SessionAuthentication`` from ``REST_FRAMEWORK`` variable:
.. sourcecode:: python
REST_FRAMEWORK = {
# Stuff before...
"DEFAULT_AUTHENTICATION_CLASSES": (
"oauth2_provider.contrib.rest_framework.OAuth2Authentication",
"rest_framework.authentication.TokenAuthentication",
),
# Stuff after...
}
Version 2.5.0
=============