Ask Your Question
0

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

asked Jun 03 '11

Samuel gravatar image Samuel flag of France
363 2 18

updated Jun 03 '11

Evgeny gravatar image Evgeny flag of Chile
6665 31 49 95
http://askbot.org/

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:37:46,022 MSG: pagesize.py:process_exception:45 (1146, "Table 'askbot_production.follow_follow' doesn't exist")
/data/local/virtualenv/askbot/lib/python2.6/site-packages/askbot/middleware/pagesize.py TIME: 2011-06-03 02:37:46,023 MSG: pagesize.py:process_exception:54 path: /admin/auth/user/

1 Answer

Sort by ยป oldest newest most voted
1
Samuel has selected this answer as correct

answered Jun 03 '11

Evgeny gravatar image Evgeny flag of Chile
6665 31 49 95
http://askbot.org/

updated Jun 03 '11

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 .

link

Comments

Verified. thanks Samuel (Jun 07 '11)

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow

subscribe to rss feed

Stats

Asked: Jun 03 '11

Seen: 145 times

Last updated: Jun 03 '11