问题
I have installed postgreSQL and psycopg2, then I created a db and user, I have granted all the permission for the user to the db and I have made all the changes in settings.py. But while I try to migrate, I am getting 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 anybody help me??
回答1:
try to migrate as follows
python manage.py migrate auth
python manage.py migrate
来源:https://stackoverflow.com/questions/32471976/getting-error-while-syncdb-django-db-utils-programmingerror-permission-denied-f