First time here? Check out the FAQ!
1

'Thread matching query does not exist' when posting question.

I'm trying to integrate Askbot as a part of a larger site. I forked the repo (askbot-devel) to modify some tests to suit my settings, after performing a syncdb and migrate command, everything went fine, except that I can't post a question. When I submit a question, it's showing Thread does not exists.

Here is the error log:

Environment:
Request Method: POST
Request URL: http://localhost:8000/question/questions/ask/

Django Version: 1.3.1
Python Version: 2.7.3
Installed Applications:
['longerusername',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'grappelli',
'django.contrib.admin',
'django.contrib.sitemaps',
'group_messaging',
'askbot',
'askbot.deps.django_authopenid',
'askbot.deps.livesettings',
'south',
'compressor',
'tinymce',
'captcha',
'social_auth',
'taggit',
'mptt',
'easy_thumbnails',
'widget_tweaks',
'jquery_widgets',
'django_open_inviter',
'django_extensions',
'djcelery',
'djkombu',
'seacucumber',
'faq',
'django_tables2',
'haystack',
'raven.contrib.django',
'references',
'qualifications',
'accounts',
'articles',
'institutions',
'vocations',
'students',
'shortlists',
'educations',
'partners',
'partners.agents',
'applications',
'reviews',
'hescar_utils',
'pstest',
'inquiries',
'staticpages',
'medias',
'emails',
'external',
'caches',
'targeted_ads',
'treasurehunt',
'subscribers',
'backend',
'backend.assigns',
'backend.streams',
'backend.labels',
'backend.kivs',
'backend.tasks',
'backend.appointments',
'backend.reminders',
'appback.users',
'appback.core',
'appback.notes',
'appback.appointments_old',
'appback.references',
'appback.students',
'appback.reminders',
'appback.coldcalls',
'debug_toolbar']
Installed Middleware:
('django.middleware.cache.UpdateCacheMiddleware',
'johnny.middleware.LocalStoreClearMiddleware',
'johnny.middleware.QueryCacheMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'hescar_utils.middleware.LocalizationURLMiddleware',
'backend.middleware.LanguageForcingMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'askbot.middleware.anon_user.ConnectToSessionMessagesMiddleware',
'askbot.middleware.forum_mode.ForumModeMiddleware',
'askbot.middleware.cancel.CancelActionMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'askbot.middleware.view_log.ViewLogMiddleware',
'askbot.middleware.spaceless.SpacelessMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'hescar_utils.middleware.SpacelessMiddleware',
'hescar_utils.middleware.ThreadLocals',
'hescar_utils.middleware.DFPMiddleware',
'hescar_utils.middleware.LoginMiddleware',
'hescar_utils.middleware.PasswordRequiredMiddleware',
'hescar_utils.middleware.PageVisitCounterMiddleware',
'hescar_utils.middleware.MBAMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware')


Traceback:
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
117.                             response = middleware_method(request, e)
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
93.                     response = view_func(request, *args, **kwargs)
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/src/askbot/askbot/utils/decorators.py" in wrapper
135.             return view_func(request, *args, **kwargs)
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/src/askbot/askbot/utils/decorators.py" in wrapper
230.             return view_func(request, *args, **kwargs)
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/src/askbot/askbot/views/writers.py" in ask
244.                     return HttpResponseRedirect(question.get_absolute_url())
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/local/lib/python2.7/site-packages/django/utils/functional.py" in _curried
55.         return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/local/lib/python2.7/site-packages/django/db/models/base.py" in get_absolute_url
887.     return settings.ABSOLUTE_URL_OVERRIDES.get('%s.%s' % (opts.app_label, opts.module_name), func)(self, *args, **kwargs)
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/src/askbot/askbot/models/post.py" in get_absolute_url
758.                 url += django_urlquote(self ...
(more)
kecebongsoft's avatar
31
kecebongsoft
asked 2012-12-06 10:25:19 -0500
Evgeny's avatar
13.2k
Evgeny
updated 2012-12-09 10:36:58 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

Nevermind, after hours of trying, I figured out that it needs to run in celery 2.2.7. Case closed.

kecebongsoft's avatar
31
kecebongsoft
answered 2012-12-07 01:06:01 -0500, updated 2012-12-07 01:06:15 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments