[Answer]-How to update/add data to Django application without deleting data

1👍

If you loop through your data you could use get_or_create(), this will return the object if it exist and create it if it doesn’t:

obj, created = Person.objects.get_or_create(first_name='John', last_name='Lennon', defaults={'birthday': date(1940, 10, 9)})

Leave a comment