T
T
turekulovass2018-06-13 13:11:14
PostgreSQL
turekulovass, 2018-06-13 13:11:14

Django + postgresql, how to import database?

Good afternoon!
The task is as follows:
1. Export the database with postgresql
2. Connect it to the Django project It is
necessary that the project can work on another machine, since the calculations are made based on data from the database

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Malyarov, 2018-06-13
@Konstantin18ko

What does it mean to export?
python3 mange.py dumpdata --all > db.json

A
Artem, 2018-06-13
@ulkoart

pg_dump dbname > dumpfile
psql dbname < dumpfile

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question