ajax - Avoiding Django's QueryDict List limitations -


I try to save the data from a web page to a digogenic view in a database as a serialized json I am doing If possible, I would like to avoid the Django Query Debt Object and just read the request with Simpson, Flaton and save the database. What is the best way to send data so that Sandjesan can adjust it?

  var languages ​​= {}; Languages ​​['English'] = ['Symbol', 'James']; Languages ​​['Spanish'] = ['Amy', 'John']; $ .ajax ({type: 'post', url: '/ savings /', data: languages, datatype: 'jason'});   

.

  if request.is_ajax () and request.method == 'POST': For the key to request. POST: Print Key Values ​​= Request .POST.getlist (Key) Print BeViewist    

It is possible that it is possible to avoid making Dijene QueryDict, but you can ignore it (from):

 def view_example (requested): data = simplejson.loads (request.raw_post_data)     

Comments

Popular posts from this blog

php - Creating canonical URLs with custom route-classes -

mysql - Formatting problem with PHP DateTime Difference when used as part of an equation -

Mysql Local server hardware -