First time here? Check out the FAQ!
0

Cannot delete a user in the django admin UI : table follow_follow does not exist

When I try to delete a user with the UI, I get the following exception. I thought I had already successfully tested this feature. I confirm that the table follow_follow does not exist in my database.

Did I set up something wrong or is it a bug?

/data/local/virtualenv/askbot/lib/python2.6/site-packages/askbot/middleware/pagesize.py TIME: 2011-06-03 02:37:46,022 MSG: pagesize.py:process_exception:43   File "/data/local/virtualenv/askbot/lib/python2.6/site-packag
    response = callback(request, *callback_args, **callback_kwargs)
  File "/data/local/virtualenv/askbot/lib/python2.6/site-packages/django/contrib/admin/options.py", line 225, in wrapper
    return self.admin_site.admin_view(view)(*args, **kwargs)
  File "/data/local/virtualenv/askbot/lib/python2.6/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/data/local/virtualenv/askbot/lib/python2.6/site-packages/django/contrib/admin/sites.py", line 186, in inner
    return view(request, *args, **kwargs)
  File "/data/local/virtualenv/askbot/lib/python2.6/site-packages/django/contrib/admin/options.py", line 926, in changelist_view
    response = self.response_action(request, queryset=cl.get_query_set())
  File "/data/local/virtualenv/askbot/lib/python2.6/site-packages/django/contrib/admin/options.py", line 711, in response_action
    response = func(self, request, queryset.filter(pk__in=selected))
  File "/data/local/virtualenv/askbot/lib/python2.6/site-packages/django/contrib/admin/actions.py", line 35, in delete_selected
    deletable_objects, perms_needed = get_deleted_objects(queryset, opts, request.user, modeladmin.admin_site, levels_to_root=2)
  File "/data/local/virtualenv/askbot/lib/python2.6/site-packages/django/contrib/admin/util.py", line 114, in get_deleted_objects
    obj._collect_sub_objects(collector)
  File "/data/local/virtualenv/askbot/lib/python2.6/site-packages/django/db/models/base.py", line 565, in _collect_sub_objects
    for sub_obj in delete_qs:
  File "/data/local/virtualenv/askbot/lib/python2.6/site-packages/django/db/models/query.py", line 107, in _result_iter
    self._fill_cache()
  File "/data/local/virtualenv/askbot/lib/python2.6/site-packages/django/db/models/query.py", line 696, in _fill_cache
    self._result_cache.append(self._iter.next())
  File "/data/local/virtualenv/askbot/lib/python2.6/site-packages/django/db/models/query.py", line 239, in iterator
    for row in self.query.results_iter():
  File "/data/local/virtualenv/askbot/lib/python2.6/site-packages/django/db/models/sql/query.py", line 284, in results_iter
    for rows in self.execute_sql(MULTI):
  File "/data/local/virtualenv/askbot/lib/python2.6/site-packages/django/db/models/sql/query.py", line 2347, in execute_sql
    cursor.execute(sql, params)
  File "/data/local/virtualenv/askbot/lib/python2.6/site-packages/django/db/backends/mysql/base.py", line 84, in execute
    return self.cursor.execute(query, args)
  File "/data/local/virtualenv/askbot/lib/python2.6/site-packages/MySQLdb/cursors.py", line 174, in execute
    self.errorhandler(self, exc, value)
  File "/data/local/virtualenv/askbot/lib/python2.6/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue

/data/local/virtualenv/askbot/lib/python2.6/site-packages/askbot/middleware/pagesize.py TIME: 2011-06-03 02:37:46,022 MSG: pagesize.py:process_exception:44 <class '_mysql_exceptions.ProgrammingError'>
/data/local/virtualenv/askbot/lib/python2.6/site-packages/askbot/middleware/pagesize.py TIME: 2011-06-03 02 ...
(more)
Evgeny's avatar
13.2k
Evgeny
updated 2011-06-03 11:24:11 -0500
Samuel's avatar
425
Samuel
asked 2011-06-03 03:21:15 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

Pff, right. The app "follow" should be removed, forgot to take it out from the setup.py and the sample settings.py.

Here is the doc on the follow user feature: http://askbot.org/doc/optional-modules.html#follow-users .

Evgeny's avatar
13.2k
Evgeny
updated 2011-06-03 11:26:24 -0500, answered 2011-06-03 11:17:17 -0500
edit flag offensive 0 remove flag delete link

Comments

Verified. thanks
Samuel's avatar Samuel (2011-06-07 03:53:44 -0500) edit
add a comment see more comments