S
S
Sulz2018-11-21 09:38:16
Django
Sulz, 2018-11-21 09:38:16

Django migrations?

Good day, tell me what the problem is, I'm trying to use postgresql instead of sqlite3, and I get this .. Where to dig? Specified postgresql in the settings. The database is empty.
python3 manage.py migrate
Operations to perform:
Apply all migrations: admin, auth, blog, contenttypes, portfolio, sessions
Running migrations:
No migrations to apply.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sulz, 2018-11-21
@Sulz

Issue resolved, moved manually
From sqlite3
python3 manage.py dumpdata > dump.json
Then to postgresql
python3 loaddata dump.json

A
Alexander, 2018-11-21
@kentuck1213

In the settings indicated that the base is postgres and not sqlite ?

V
Vladimir, 2018-11-21
@vintello

python3 manage.py makemigrations
python3 manage.py migrate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question