0
1

Revision 209 (or thereabouts) seems to have introduced a bug that causes nothing to render on the screen for the home page due to the following reason. This bug is still active as of rev 251.

TemplateSyntaxError at /
Caught an exception while rendering: 'module' object has no attribute 'SIDEBAR_UPPER_SHOW'

Original Traceback (most recent call last):
  File ".../site-packages/Django-1.1.1-py2.5.egg/django/template/debug.py", line 71, in render_node
    result = node.render(context)
  File ".../site-packages/Django-1.1.1-py2.5.egg/django/template/__init__.py", line 936, in render
    dict = func(*args)
  File "osqa/forum/templatetags/general_sidebar_tags.py", line 22, in sidebar_upper
    'show': settings.SIDEBAR_UPPER_SHOW,
AttributeError: 'module' object has no attribute 'SIDEBAR_UPPER_SHOW'

Django then references the following template location:

In template osqa/forum/skins/default/templates/index.html, error at line 19

Is there some reason why I'm seeing this and nobody else is?

asked 12 May '10, 23:39

bphunter1972's gravatar image

bphunter1972
186247
accept rate: 0%

edited 13 May '10, 08:57

rickross's gravatar image

rickross ♦♦
12.5k2914972


It's most likely that your code needs to be updated. We're quite a few commits further down the road, and the upper and lower sidebar content is working flawlessly on a bunch of different OSQA sites.

It is possible that your code is updated, but your server needs to be restarted. It looks like your templates are updated, but maybe your apache is still running older python code from a prior launch.

link

answered 12 May '10, 23:47

rickross's gravatar image

rickross ♦♦
12.5k2914972
accept rate: 46%

That probably is the answer. Unfortunately on DreamHost this seems to have caused permanent damage. Oh well.

(13 May '10, 01:05) bphunter1972

After you update your code you can use pkill python to get your code restarted.

(13 May '10, 06:04) Hernani Cerq... ♦♦

@bphunter1972, if your problems persist, then hop into the OSQA chat channel, and we'll be glad to try to help you.

(13 May '10, 07:26) rickross ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×23

Asked: 12 May '10, 23:39

Seen: 358 times

Last updated: 13 May '10, 08:57

powered by OSQA