- Notifications
You must be signed in to change notification settings - Fork302
Override default dictionary for settings REST_FRAMEWORK#1212
-
Hi! We already have an API in place based on "plain" DRF. But now we want to introduce a v2 of the API, based on the JSON:API module. |
BetaWas this translation helpful?Give feedback.
All reactions
DJA is only a thin layer over Django REST framework and fully depends on it, so it is therefore not possible to have two different setting dicts.
However, within Django REST framework you can overwrite the configuration in the view itself by setting therespective attribute. You could create your own JSON:API specific view and derive all classes from that view.
Replies: 1 comment
-
DJA is only a thin layer over Django REST framework and fully depends on it, so it is therefore not possible to have two different setting dicts. However, within Django REST framework you can overwrite the configuration in the view itself by setting therespective attribute. You could create your own JSON:API specific view and derive all classes from that view. |
BetaWas this translation helpful?Give feedback.