Getting error during syncdb django.db.utils.ProgrammingError: permission denied for django_migrations relationship

I installed postgreSQL and psycopg2, then created db and user, I granted all permissions for the user in db, and I made all the changes to settings.py . But while I try to migrate, I get the error django.db.utils.ProgrammingError: permission denied for relation django_migrations

settings.py :

 DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'easyapp', 'USER': 'krishna', 'PASSWORD': 'sudeep', 'HOST': 'localhost', 'PORT': '', } } 

Can someone help me?

+1
python django postgresql psql
source share
1 answer

try the migration as follows

 python manage.py migrate auth python manage.py migrate 
+1
source share

All Articles