mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Updating release notes
This commit is contained in:
parent
a0374e4498
commit
41b213414d
|
@ -60,16 +60,30 @@ The serializer redesign in 3.0 did not include any public API for modifying how
|
|||
|
||||
We've now moved a number of packages out of the core of REST framework, and into separately installable packages. If you're currently using these you don't need to worry, you simply need to `pip install` the new packages, and change any import paths.
|
||||
|
||||
We're making this change in order to distribute the maintainance workload, and keep better focus of the core essentials of the framework.
|
||||
We're making this change in order to help distribute the maintainance workload, and keep better focus of the core essentials of the framework.
|
||||
|
||||
The change also means we can be more flexible with which external packages we recommend. For example, the excellently maintained [Django OAuth toolkit](https://github.com/evonove/django-oauth-toolkit) is now our recommended option for integrating OAuth support.
|
||||
The change also means we can be more flexible with which external packages we recommend. For example, the excellently maintained [Django OAuth toolkit](https://github.com/evonove/django-oauth-toolkit) has now been promoted as our recommended option for integrating OAuth support.
|
||||
|
||||
**TODO** Links and package names
|
||||
The following packages are now moved out of core and should be separately installed:
|
||||
|
||||
* XML
|
||||
* YAML
|
||||
* JSONP
|
||||
* OAuth
|
||||
* OAuth - [djangorestframework-oauth](http://jpadilla.github.io/django-rest-framework-oauth/)
|
||||
* XML - [djangorestframework-xml](http://jpadilla.github.io/django-rest-framework-xml)
|
||||
* YAML - [djangorestframework-yaml](http://jpadilla.github.io/django-rest-framework-yaml)
|
||||
* JSONP - [djangorestframework-jsonp](http://jpadilla.github.io/django-rest-framework-jsonp)
|
||||
|
||||
It's worth reiterating that this change in policy shouldn't mean any work in your codebase other than adding a new requirement and modifying some import paths. For example to install XML rendering, you would now do:
|
||||
|
||||
pip install djangorestframework-xml
|
||||
|
||||
And modify your settings, like so:
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
'DEFAULT_RENDERER_CLASSES': [
|
||||
'rest_framework.renderers.JSONRenderer',
|
||||
'rest_framework.renderers.BrowsableAPIRenderer',
|
||||
'rest_framework_xml.renderers.XMLRenderer'
|
||||
]
|
||||
}
|
||||
|
||||
# What's next?
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user