menu

arrow_back What is the problem with django migrations?

by
1 vote
In the project, there are no migration files, the database is completely empty
When attempting to execute python manage.py makemigrations : it gives out -
django.db.utils.ProgrammingError: relation "config_baseconfig" does not exist

Of course she is not, because the base is empty and there are no migrations. What to do about it?
Any manage.py commands (e.g. python manage.py showmigrations) throw this error

DB ->
python manage.py dbshell

psql (12.2 (Ubuntu 12.2-4))
Type "help" for help.

test=> \dt
Did not find any relations.

9 Comments

1. manage.py migrate, what does it output?
2. See if there are any files in the migrations directories, in the applications, if there are, delete them and run them again
Searching on search engines ,
1) the same
2) only __init__ - empty
Sergey Gornostaev Now I'm going to try to disable the appliqu├ęs one by one in the netting until it disappears
Sergey Gornostaev I did, thank you.
Some application is poorly written and tries to refer to the database when importing.
settings.DATABASES show
Are you sure the base is empty?
Vadim Shatalov , updated the question
Vadim Shatalov ,
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
"NAME": "test",
"USER": "test_user",
"PASSWORD": "GTgffhhtueRf",
"CONN_MAX_AGE": 60 * 10,
}
}

1 Answer

by
0 votes