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: django.utils from 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')

However, HTTP response on post, I get:

  typeError : Dump () takes at least 2 arguments (1 given)   

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.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -