Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Environment:
Request Method: GET
Request URL: http://localhost/question/2/this-is-a-test-question/
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/views/readers.py" in question
624. return render(request, 'question.html', data)
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/local/lib/python2.7/site-packages/django/shortcuts/__init__.py" in render
44. return HttpResponse(loader.render_to_string(*args, **kwargs),
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/local/lib/python2.7/site-packages/django/template/loader.py" in render_to_string
188. return t.render(context_instance)
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/local/lib/python2.7/site-packages/coffin/template/__init__.py" in render
55. return super(Template, self).render(**context)
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/local/lib/python2.7/site-packages/jinja2/environment.py" in render
894. return self.environment.handle_exception(exc_info, True)
File "/home/kecebongsoft/workspaces/easyuni/easyuni/templates/askbot/easyuni/templates/question.html" in top-level template code
1. {% extends "two_column_body.html" %}
File "/home/kecebongsoft/workspaces/easyuni/easyuni/templates/askbot/easyuni/templates/two_column_body.html" in top-level template code
1. {% extends "base.html" %}
File "/home/kecebongsoft/workspaces/easyuni/easyuni/templates/askbot/easyuni/templates/base.html" in top-level template code
92. {% block body %}
File "/home/kecebongsoft/workspaces/easyuni/easyuni/templates/askbot/easyuni/templates/two_column_body.html" in block "body"
5. {% block content%}
File "/home/kecebongsoft/workspaces/easyuni/easyuni/templates/askbot/easyuni/templates/question.html" in block "content"
218. {% include "question/content.html" %}
File "/home/kecebongsoft/workspaces/easyuni/easyuni/templates/askbot/easyuni/templates/question/content.html" in top-level template code
4. {% include "question/question_card.html" %}
File "/home/kecebongsoft/workspaces/easyuni/easyuni/templates/askbot/easyuni/templates/question/question_card.html" in top-level template code
13. {% include "question/question_author_info.html" %}
File "/home/kecebongsoft/workspaces/easyuni/easyuni/templates/askbot/easyuni/templates/question/question_author_info.html" in top-level template code
2. macros.post_last_updater_and_creator_info(
File "/home/kecebongsoft/workspaces/easyuni/easyuni/templates/askbot/easyuni/templates/macros.html" in template
66. {{ post_contributor_info(
File "/home/kecebongsoft/workspaces/easyuni/easyuni/templates/askbot/easyuni/templates/macros.html" in template
120. {{ post_contributor_avatar_and_credentials(
File "/home/kecebongsoft/workspaces/easyuni/easyuni/templates/askbot/easyuni/templates/macros.html" in template
60. {{ user_primary_group(user) }}
File "/home/kecebongsoft/workspaces/easyuni/easyuni/templates/askbot/easyuni/templates/macros.html" in template
242. {% set group=user.get_primary_group() %}
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/src/askbot/askbot/models/__init__.py" in user_get_primary_group
2326. groups = self.get_groups(private=True)
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/src/askbot/askbot/models/__init__.py" in user_get_groups
2309. return Group.objects.get_for_user(self, private=private)
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/src/askbot/askbot/models/user.py" in get_for_user
416. user=user
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/local/lib/python2.7/site-packages/django/db/models/query.py" in filter
550. return self._filter_or_exclude(False, *args, **kwargs)
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/local/lib/python2.7/site-packages/django/db/models/query.py" in _filter_or_exclude
568. clone.query.add_q(Q(*args, **kwargs))
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/local/lib/python2.7/site-packages/django/db/models/sql/query.py" in add_q
1194. can_reuse=used_aliases, force_having=force_having)
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/local/lib/python2.7/site-packages/django/db/models/sql/query.py" in add_filter
1069. negate=negate, process_extras=process_extras)
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/local/lib/python2.7/site-packages/django/db/models/sql/query.py" in setup_joins
1371. field.m2m_target_field_name())[0].column
File "/home/kecebongsoft/workspaces/easyuni/easyuni-env/local/lib/python2.7/site-packages/django/db/models/fields/related.py" in <lambda>
1137. self.m2m_target_field_name = lambda: get_m2m_rel().field_name
Exception Type: AttributeError at /question/2/this-is-a-test-question/
Exception Value: 'NoneType' object has no attribute 'field_name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.