We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I noticed this being an issue in the past #4, however, it seems it is still causing issues.
The rendering displays the json all on a single line and links are presented as {"user":"http:\/\/127.0.0.1:8000\/user\/"}
{"user":"http:\/\/127.0.0.1:8000\/user\/"}
Using:
The text was updated successfully, but these errors were encountered:
This is because you have to include the defaults as well like so
'DEFAULT_RENDERER_CLASSES': ( 'drf_ujson.renderers.UJSONRenderer', 'rest_framework.renderers.BrowsableAPIRenderer', ), 'DEFAULT_PARSER_CLASSES': ( 'drf_ujson.parsers.UJSONParser', 'rest_framework.parsers.FormParser', 'rest_framework.parsers.MultiPartParser' ),
Sorry, something went wrong.
I fixed the readme and updated the classes here - https://github.com/radzhome/drf-ujson-renderer
No branches or pull requests
I noticed this being an issue in the past #4, however, it seems it is still causing issues.
The rendering displays the json all on a single line and links are presented as
{"user":"http:\/\/127.0.0.1:8000\/user\/"}
Using:
The text was updated successfully, but these errors were encountered: