Suppose I am getting a list of user from an api in json format and I want to save it in my User model in django. Saving the user might not be a problem but I want that data continuously.
I am getting an api from a system which sends me the list of user who sent emails. These users go on increasing.
Now I am getting a list of users. I want to save these users in my database. But the questioning part is, suppose 10 user has sent messages I am getting list of 10 users from api then I will save it say like
usr = User()
usr.username = data["username"]
usr.save()
Now what when 1 more user sends the email. Now I will be receiving 11 user.
Here I want continuously add the updated user in my database. How to do this ?
I dont know if I have made it clear or not but need help on this