databases

119 views
Skip to first unread message

Karim Dahman

unread,
Dec 1, 2023, 9:23:00 AM12/1/23
to Django users
Hi,
how can create python script in terminal to update the data from old databases into new databases automaticaly

Madhusudhan Reddy

unread,
Dec 1, 2023, 9:43:20 AM12/1/23
to django...@googlegroups.com
Bro please explain the scenario and the problem. 
Nobody will not give proper answer until you proper details.

On Fri, 1 Dec 2023 at 7:52 PM, Karim Dahman <karimda...@gmail.com> 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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/be7efd5c-c157-4ee1-b9dc-39533eb66414n%40googlegroups.com.

Dawda Borje Kujabi

unread,
Dec 1, 2023, 1:27:09 PM12/1/23
to Django users
Well yes you can dependong on your databases. What kind of databases do you have? 

Dawda Borje Kujabi

unread,
Dec 1, 2023, 1:28:24 PM12/1/23
to Django users
Well you can depending on your databases, what kinda dtatbase do you have? 

Swarup Selvaraj

unread,
Dec 7, 2023, 9:31:23 AM12/7/23
to Django users
Hi Karim,

I understand you are interested in transferring your data into a newly provisioned database

You could use django's built in 
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 after executing loaddata to set appropriate autoincrement sequences.

Regards,
SWARUP Selvaraj
Reply all
Reply to author
Forward
0 new messages