Answer the question
In order to leave comments, you need to log in
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
Issue resolved, moved manually
From sqlite3
python3 manage.py dumpdata > dump.json
Then to postgresql
python3 loaddata dump.json
In the settings indicated that the base is postgres and not sqlite ?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question