First time here? Check out the FAQ!

kasd's profile - activity

2014-12-19 07:42:52 -0500 received badge Famous Question (source)
2014-09-27 15:17:45 -0500 received badge Editor (source)
2014-09-27 15:15:11 -0500 asked a question Askbot crash on skin activation

Dear all,

when I activate some skin I get on /questions:

Exception Type: UndefinedError
Exception Value:    'questions' is undefined

I'm just playing with "Suave" skin with a fresh install from github, and Askbot latest stable from pip.

The skin load seems to work fine (the config section evidences a style change based on Suave).

I reviewed all README files, "googled" and searched through this site but I didn't find something related.

Provably I'm doing something wrong, please, can you help me? I'll still investigating this situation, i'll update this thread with the related news.

Thanks in advance and KR


More detail

Just to understand the scenario and reach more info, tried to adapt views/readers.py (questions def) over test-error method following the traceback detail (bypass previous conditional, add fetch and declare questions on template-data, adapt search_state, ...), all tests unsuccessfully to work...

settings.py:

...
STATICFILES_DIRS = (
    ('default/media', os.path.join(ASKBOT_ROOT, 'media')),
    os.path.join(BASE_PATH, "templates_custom"), 
)
...
ASKBOT_EXTRA_SKINS_DIR = os.path.join(BASE_PATH, "templates_custom")
...

Project structure:

$PATHHH /manage.py /settings.py /custom_templates

The related Traceback:

File "$PATHHH/venv_answers/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  115.                         response = callback(request, *callback_args, **callback_kwargs)
File "$PATHHH/venv_answers/lib/python2.7/site-packages/askbot/views/readers.py" in questions
  262.         return render(request, 'main_page.html', template_data)
File "$PATHHH/venv_answers/lib/python2.7/site-packages/django/shortcuts/__init__.py" in render
  53.     return HttpResponse(loader.render_to_string(*args, **kwargs),
File "$PATHHH/venv_answers/lib/python2.7/site-packages/django/template/loader.py" in render_to_string
  177.         return t.render(context_instance)
File "$PATHHH/venv_answers/lib/python2.7/site-packages/coffin/template/__init__.py" in render
  55.         return super(Template, self).render(**context)
File "$PATHHH/venv_answers/lib/python2.7/site-packages/jinja2/environment.py" in render
  969.         return self.environment.handle_exception(exc_info, True)
File "$PATHHH/venv_answers/lib/python2.7/site-packages/jinja2/environment.py" in handle_exception
  742.         reraise(exc_type, exc_value, tb)
File "$PATHHH/answerz/templates_custom/original/templates/main_page.html" in top-level template code
  1. {% extends "two_column_body.html" %}
File "$PATHHH/venv_answers/lib/python2.7/site-packages/askbot/templates/two_column_body.html" in top-level template code
  1. {% extends "base.html" %}
File "$PATHHH/answerz/templates_custom/original/templates/base.html" in top-level template code
  23.             {% block body %}
File "$PATHHH/venv_answers/lib/python2.7/site-packages/askbot/templates/two_column_body.html" in block "body"
  5.     {% block content%}
File "$PATHHH/answerz/templates_custom/original/templates/main_page.html" in block "content"
  15.     {% include "main_page/content.html" %}
File "$PATHHH/answerz/templates_custom/original/templates/main_page/content.html" in top-level template code
  2.     {% include "main_page/questions_loop.html" %}
File "$PATHHH/answerz/templates_custom/original/templates/main_page/questions_loop.html" in top-level template code
  2. {% cache 0 "questions" questions search_tags scope sort query context.page context.page_size language_code %}
File "$PATHHH/venv_answers/lib/python2.7/site-packages/coffin/template/defaulttags.py" in _cache_support
  345.             value = caller()
File "$PATHHH/answerz/templates_custom/original/templates/main_page/questions_loop.html" in template
  3.     {% for question in questions.object_list %}
File "$PATHHH/venv_answers/lib/python2.7/site-packages/jinja2/environment.py" in getattr
  397.             return getattr(obj, attribute)