/ admin / login /关系django_session的权限被拒绝的ProgrammingError

时间:2018-09-13 21:56:06

标签: python django postgresql heroku django-rest-framework

我使用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

0 个答案:

没有答案