First time here? Check out the FAQ!

Revision history  [back]

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:

FieldError at /askbot/question/9/where-to-go-for-lunch Cannot resolve keyword 'followed_questions' into field. Choices are: _message_set, about, bronze, comment_comments, comment_flags, consecutive_days_visit_count, country, date_joined, date_of_birth, display_tag_filter_strategy, email, email_isvalid, email_key, email_tag_filter_strategy, first_name, gold, gravatar, groups, has_custom_avatar, id, ignored_tags, interesting_tags, is_active, is_staff, is_superuser, last_login, last_name, last_seen, location, logentry, new_response_count, password, questions_per_page, real_name, reputation, seen_response_count, show_country, silver, status, user_permissions, username, userprofile, websiteuserprofile, website

Here is the call stack:

/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py in get_response
/usr/local/lib/python2.6/dist-packages/django/utils/decorators.py in _wrapped_view
/var/www/askbot/hpsport/askbot/views/readers.py in question
/var/www/askbot/hpsport/askbot/forms.py in __init__
/usr/local/lib/python2.6/dist-packages/django/db/models/manager.py in all
/usr/local/lib/python2.6/dist-packages/django/db/models/fields/related.py in get_query_set
/usr/local/lib/python2.6/dist-packages/django/db/models/query.py in filter
/usr/local/lib/python2.6/dist-packages/django/db/models/query.py in _filter_or_exclude
/usr/local/lib/python2.6/dist-packages/django/db/models/sql/query.py in add_q
/usr/local/lib/python2.6/dist-packages/django/db/models/sql/query.py in add_filter
/usr/local/lib/python2.6/dist-packages/django/db/models/sql/query.py in setup_joins