Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 811 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 811 Bytes

Django Rest Framework ORJSON Renderer

Build Status

Django Rest Framework renderer using orjson

Installation

pip install git+https://github.com/baffolobill/drf-orjson-renderer.git

You can then set the ORJSONRenderer class as your default renderer in your settings.py

REST_FRAMEWORK = {
    'DEFAULT_RENDERER_CLASSES': (
        'drf_orjson.renderers.ORJSONRenderer',
    ),
    ...
}

Also you can set the ORJSONParser class as your default parser in your settings.py

REST_FRAMEWORK = {
    'DEFAULT_PARSER_CLASSES': (
        'drf_orjson.parsers.ORJSONParser',
    ),
    ...
}