What are some basic steps for troubleshooting and narrowing down the cause for the "django.db.utils.ProgrammingError: permission denied for relation django_migrations" error from Django?
I'm getting this message after what was initially a stable production server but has since had some changes to several aspects of Django, Postgres, Apache, and a pull from Github. In addition, it has been some time since those changes were made and I don't recall or can't track every change that may be causing the problem.
I get the message when I run python manage.py runserver
or any other python manage.py ...
command except python manage.py check
, which states the system is good.
ubuntu
but my virtual environment sets my DATABASE_USER env variable asdbuser
, which is also used in the DATABASES definition in my production settings file for Django. In Postgres, thedbuser
exists and has been granted, I believe, the correct privileges.dbuser
has attribute Create DB as a postgres user and has access privilege for the db of CTc. – user3062149 Aug 15 '16 at 0:14dbuser
. – user3062149 Aug 17 '16 at 1:44