我使用Postgres在Heroku上运行django rest fromework 当我尝试使用超级用户从管理面板登录时,出现此错误:
ProgrammingError at /admin/login/
permission denied for relation django_session
Request Method: POST
Request URL: https://myappckrths.herokuapp.com/admin/login/?next=/admin/
Django Version: 1.11.10
Exception Type: ProgrammingError
Exception Value:
permission denied for relation django_session
Exception Location: /app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py in execute, line 64
Python Executable: /app/.heroku/python/bin/python
Python Version: 3.6.5
Python Path:
['/app',
'/app/.heroku/python/bin',
'/app',
'/app/.heroku/python/lib/python36.zip',
'/app/.heroku/python/lib/python3.6',
'/app/.heroku/python/lib/python3.6/lib-dynload',
'/app/.heroku/python/lib/python3.6/site-packages']
Server time: Thu, 13 Sep 2018 21:51:17 +0000