Skip to content

Change HttpResponse to JsonResponse (for Django 1.9)#18

Open
applecat wants to merge 3 commits intoalex:masterfrom
applecat:master
Open

Change HttpResponse to JsonResponse (for Django 1.9)#18
applecat wants to merge 3 commits intoalex:masterfrom
applecat:master

Conversation

@applecat
Copy link

@applecat applecat commented Mar 1, 2016

Since Django 1.7 we can use JsonResponse instead of HttpResponse for json responses.
And in Django 1.9 HttpResponse doesn't accept mimetype argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant