Django 管理员不允许我删除其身份验证管理应用程序中的用户
我不确定这可能更多是一个服务器故障问题。
我有两台几乎相同的服务器 - 我将数据库从一台克隆到另一台,现在当我尝试删除 Admin > 中的用户时Auth 应用程序 Django 给出以下错误:
File "/usr/lib/python2.5/site-packages/django/db/models/sql/query.py", line 206, in results_iter
for rows in self.execute_sql(MULTI):
File "/usr/lib/python2.5/site-packages/django/db/models/sql/query.py", line 1734, in execute_sql
cursor.execute(sql, params)
ProgrammingError: relation "django_openidauth_useropenid" does not exist
所以问题似乎是 django_openidauth_useropenid 但它引用了什么 - 数据库或应用程序中缺少某些内容?
我的网站基于 PINAX 集合应用程序。
This may be more of a serverfault question I'm not sure.
I have two practically identical servers - I cloned the DB from one to the other, and now when I try to delete a user in the Admin > Auth
application Django gives the following error:
File "/usr/lib/python2.5/site-packages/django/db/models/sql/query.py", line 206, in results_iter
for rows in self.execute_sql(MULTI):
File "/usr/lib/python2.5/site-packages/django/db/models/sql/query.py", line 1734, in execute_sql
cursor.execute(sql, params)
ProgrammingError: relation "django_openidauth_useropenid" does not exist
So the issue seems to be django_openidauth_useropenid
but what is it referencing - something missing in the DB, or an application?
My site is based on the PINAX collection apps.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是通过执行
./manage.pysyncdb
解决的。它一定已经过时了。
This was resolved by doing a
./manage.py syncdb
It must have got out of date somehow.