Alex Dong's profile - activity
2015-05-21 10:42:36 -0500 | received badge | Famous Question (source) |
2011-08-17 04:53:08 -0500 | commented answer | ManyToMany join table "question_followed_by" is empty. I have pinpointed the problem to be askbot/forms.py L644 the AnswerForm uses "question.followed_by.all()" to see whether it should set the default checkbox to be true or false. The "question.followed_by" statement is causing the above problem. Considering the fact that all other functions are working perfectly well, I do not think there are any major mod_wsgi setting errors. @Evgeny, how likely do you think it's the monkey-patching that's causing this problem? |
2011-08-17 04:30:53 -0500 | commented answer | ManyToMany join table "question_followed_by" is empty. Evgeny, that's exactly what we've suspected. However, the mod_wsgi's PYTHONPATH all look quite innocent. Since askbot monkey patched django's User object, will it be possible that it causes some problem similar to the one described here: http://bitkickers.blogspot.com/2010/04/django-manytomany-error-cannot-resolve.html. This is the django ticket associated with it: https://code.djangoproject.com/ticket/1796 |
2011-08-17 04:07:26 -0500 | answered a question | ManyToMany join table "question_followed_by" is empty. Hi Evgeny, Thanks for the quick reply. Yes, you are right, it's because no one is following the question yet. However, I am wondering why would I get this exception? The site runs perfectly with django's "manage.py runserver". However, when we deployed it onto our staging server, which uses mod_wsgi, we're getting "Cannot resolve keyword 'followed_questions' into field" error. Here is the error message and call stack. You can see that the ForeignKey and ManyToManyField in Question model are both missing in the list:
Here is the call stack: |
2011-08-17 03:49:32 -0500 | received badge | Student (source) |
2011-08-17 03:32:50 -0500 | asked a question | ManyToMany join table "question_followed_by" is empty. We are integrating askbot into our existing django site. We found the join table I'm wondering what would cause the join table to miss records? Thanks a lot, Alex |