Skip to content
New issue

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

DeprecationWarning #134

Open
k1r32 opened this issue Apr 23, 2014 · 1 comment
Open

DeprecationWarning #134

k1r32 opened this issue Apr 23, 2014 · 1 comment

Comments

@k1r32
Copy link

k1r32 commented Apr 23, 2014

I got an warning when using with django 1.6:

[23/Apr/2014 17:00:41] "GET /static/dajaxice/dajaxice.core.js HTTP/1.1" 200 10319
/usr/local/lib/python2.7/dist-packages/django/http/response.py:330: DeprecationWarning: Using mimetype keyword argument is deprecated, use content_type instead
super(HttpResponse, self).init(_args, *_kwargs)

@chrisgrande
Copy link

In dajaxice/views.py edit line 58 to read:
return HttpResponse(response, content_type="application/x-json")

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

No branches or pull requests

2 participants