Hi Karim, I understand you are interested in transferring your data into a newly provisioned database
You could use django's built in - dumpdata <https://docs.djangoproject.com/en/5.0/ref/django-admin/#dumpdata> to export a json - loaddata <https://docs.djangoproject.com/en/5.0/ref/django-admin/#loaddata> to import the exported json Ofcourse there are areas of concerns. It is better to exclude contenttypes since the order of creation of tables might be different. It is better to define the permissions and groups manually (to be 100% sure) in django admin. We need to reset sequences <https://forum.djangoproject.com/t/reset-id-model-autoincrement/8857> after executing loaddata to set appropriate autoincrement sequences. Regards, SWARUP Selvaraj On Friday 1 December 2023 at 19:53:00 UTC+5:30 Karim Dahman wrote: Hi, how can create python script in terminal to update the data from old databases into new databases automaticaly -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/31bf8b97-95c4-429e-9473-b5ac2c5cae70n%40googlegroups.com.