Push data from main project into project in local

Hi every one, I’m new to Django, to the heading of topic.
Now I have a project is running in server. And I’m required to maintain project, I have running the project successful in localhost. But with the local database the website have not anything. So how can I get data from the main project and push into project in localhost . So very thanks for any help.
Have a nice day everyone.

You can use your database’s native tools to copy a database from one location to another. (e.g. pg_dump for PostgreSQL) Or you could look at using Django’s dumpdata and loaddata commands.

1 Like