json - simplejson error on return HttpResponse in django 1.5 CBV -
I'm new to Django, especially CBV. Therefore, I have a list view with a post with, where I am trying to output a JSON: However, HTTP response on post, I get: I'm not completely sure what I'm doing (I'm making a mistake on this issue a little bit C, but there is no luck yet) - and I was wondering if anyone had to face such a situation / error message To dump into a file, you want. simplejson class MyCoolListView (ListView): # Template Announcements and Other Goods Def get_context_data (self, ** kwargs): # Returns to some stuff Ref Defrunchqueryset (self): # Some returning query queries def (self, request, * args, ** kwargs): # If certified and Returns JSRN Return HTTPSPSPS (SimpleJson.amp ({" Score ": blogpost .core}}, content_type = 'app / js')
typeError : Dump () takes at least 2 arguments (1 given)
Comments
Post a Comment