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?
- make request api , json response. example response: response = { 'name': bob }
- create django model object fields being set parts of json. example: model_ex(name=json['name'], , on...)
- model_ex.save() - makes call save db
thanks!
Comments
Post a Comment