python - Saving JSON Get Responses in Django to DB? Do you fill in models and then call save? -


up until now, i've done of work through admin panel rather making requests json data api. let's wanting save data database. natural flow saving database or there better way of doing this?

  1. make request api , json response. example response: response = { 'name': bob }
  2. create django model object fields being set parts of json. example: model_ex(name=json['name'], , on...)
  3. model_ex.save() - makes call save db

thanks!


Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

formula - R: how to pass in a reference to the variable in glm or lm? -