Skip to content Skip to sidebar Skip to footer

Psycopg2.errors.insufficientprivilege: Permission Denied For Relation Django_migrations

What my settings.py for DB looks like: ALLOWED_HOSTS = ['*'] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'fishercode

Solution 1:

Please try using the below command, this worked for me

GRANT rds_superuser TO username;

Solution 2:

I had the following error.

psycopg2.errors.InsufficientPrivilege: permission denied for table django_migrations

Granted privileges of superuser 'postgres' to the one I was working with.

For me, this command worked:

GRANT postgres TO <user>;

Post a Comment for "Psycopg2.errors.insufficientprivilege: Permission Denied For Relation Django_migrations"