There were two issues. First was due to Django converting model class name with app name prefix, and as far as that part was solved 'Relation does not exist' error after transferring to PostgreSQL I suppose it may be right to make different question.I was getting such errors as relation "blog_userprofile" does not exist
and found out by
select column_name, data_type, character_maximum_length
from INFORMATION_SCHEMA.COLUMNS where table_name = 'closer';
that there are no columns in existing database closer
, so python manage.py migrate
, python manage.py make migrations
, python manage.py make appname
, python manage.py syncdb
all basically didn't works properly and didn't transform models.py into database scheme.
Why? How do I solve this ? I'v tried deleting everything from models.py and running all commands again, but it still outputs errors on nonexisting fields (?) like django.db.utils.ProgrammingError: relation "blog_community" already exists
. I tried to to use --fake initial
and flush
and reset
but neither of those helped.