Tristan Brotherton Tristan Brotherton - 2 months ago 11
Python Question

Django admin won't let me delete a user in its auth admin application

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.

Answer

This was resolved by doing a ./manage.py syncdb

It must have got out of date somehow.