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/ (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...

    ('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 / / /custom_templates

The related Traceback:

File "$PATHHH/venv_answers/lib/python2.7/site-packages/django/core/handlers/" in get_response
  115.                         response = callback(request, *callback_args, **callback_kwargs)
File "$PATHHH/venv_answers/lib/python2.7/site-packages/askbot/views/" in questions
  262.         return render(request, 'main_page.html', template_data)
File "$PATHHH/venv_answers/lib/python2.7/site-packages/django/shortcuts/" in render
  53.     return HttpResponse(loader.render_to_string(*args, **kwargs),
File "$PATHHH/venv_answers/lib/python2.7/site-packages/django/template/" in render_to_string
  177.         return t.render(context_instance)
File "$PATHHH/venv_answers/lib/python2.7/site-packages/coffin/template/" in render
  55.         return super(Template, self).render(**context)
File "$PATHHH/venv_answers/lib/python2.7/site-packages/jinja2/" in render
  969.         return self.environment.handle_exception(exc_info, True)
File "$PATHHH/venv_answers/lib/python2.7/site-packages/jinja2/" 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_size language_code %}
File "$PATHHH/venv_answers/lib/python2.7/site-packages/coffin/template/" 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/" in getattr
  397.             return getattr(obj, attribute)
kasd's avatar
asked 2014-09-27 15:15:11 -0500, updated 2014-09-27 15:17:45 -0500
edit flag offensive 0 remove flag close merge delete


add a comment see more comments