First time here? Check out the FAQ!

Revision history  [back]

Template Error when trying to close a question

TemplateSyntaxError at /question/1/testing-123/
Encountered unknown tag 'else'.
Request Method: GET
Request URL:    http://172.19.32.112:8001/question/1/testing-123/
Django Version: 1.5
Exception Type: TemplateSyntaxError
Exception Value:    
Encountered unknown tag 'else'.
Exception Location: /home/nikhil/mysite/askbot/templates/question/closed_question_info.html in template, line 4
Python Executable:  /usr/bin/python
Python Version: 2.7.3
Python Path:    
['/home/nikhil/interviewcluster',
 '/usr/local/lib/python2.7/dist-packages/South-0.8.4-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/Coffin-0.3.8-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/lamson-1.3.4-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_keyedcache-1.4_6-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_celery-3.0.11-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/oauth2-1.5.211-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/Unidecode-0.04.14-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/markdown2-2.1.0-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_threaded_multihost-1.4_1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/Jinja2-2.7.1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/pytz-2013b-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_compressor-1.2-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_robots-0.9.2-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_picklefield-0.3.0-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/python_openid-2.2.5-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/akismet-0.2.0-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_countries-1.0.5-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_kombu-0.9.4-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_tinymce-1.5.1b2-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_followit-0.0.3-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/html5lib-0.90-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_recaptcha_works-0.3.4-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/longerusername-0.4-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/sanction-0.3.1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/pystache-0.3.1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/beautifulsoup4-4.3.2-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/python_modargs-1.7-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/python_daemon-1.6-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/nose-1.3.0-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/mock-1.0.1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/celery-3.1.4-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_appconf-0.6-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/six-1.4.1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/lockfile-0.9.1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/kombu-3.0.5-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/billiard-3.3.0.7-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/amqp-1.3.3-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/anyjson-0.3.3-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/distribute-0.7.3-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/setuptools-1.4-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PIL',
 '/usr/lib/python2.7/dist-packages/gst-0.10',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
 '/usr/lib/python2.7/dist-packages/ubuntuone-client',
 '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
 '/usr/lib/python2.7/dist-packages/ubuntuone-couch',
 '/usr/lib/python2.7/dist-packages/ubuntuone-installer',
 '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol',
 '/home/nikhil/mysite/askbot/deps']
Server time:    Thu, 5 Dec 2013 02:12:07 -0600

Got this error after trying to close a question I posted. No changes were done to the Askbot code

Template Error when trying to close a question

TemplateSyntaxError at /question/1/testing-123/
Encountered unknown tag 'else'.
Request Method: GET
Request URL:    http://172.19.32.112:8001/question/1/testing-123/
Django Version: 1.5
Exception Type: TemplateSyntaxError
Exception Value:    
Encountered unknown tag 'else'.
Exception Location: /home/nikhil/mysite/askbot/templates/question/closed_question_info.html /home/nikhil/interviewcluster/askbot/templates/question/closed_question_info.html in template, line 4
Python Executable:  /usr/bin/python
Python Version: 2.7.3
Python Path:    
['/home/nikhil/interviewcluster',
 '/usr/local/lib/python2.7/dist-packages/South-0.8.4-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/Coffin-0.3.8-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/lamson-1.3.4-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_keyedcache-1.4_6-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_celery-3.0.11-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/oauth2-1.5.211-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/Unidecode-0.04.14-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/markdown2-2.1.0-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_threaded_multihost-1.4_1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/Jinja2-2.7.1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/pytz-2013b-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_compressor-1.2-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_robots-0.9.2-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_picklefield-0.3.0-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/python_openid-2.2.5-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/akismet-0.2.0-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_countries-1.0.5-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_kombu-0.9.4-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_tinymce-1.5.1b2-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_followit-0.0.3-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/html5lib-0.90-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_recaptcha_works-0.3.4-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/longerusername-0.4-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/sanction-0.3.1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/pystache-0.3.1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/beautifulsoup4-4.3.2-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/python_modargs-1.7-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/python_daemon-1.6-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/nose-1.3.0-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/mock-1.0.1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/celery-3.1.4-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_appconf-0.6-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/six-1.4.1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/lockfile-0.9.1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/kombu-3.0.5-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/billiard-3.3.0.7-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/amqp-1.3.3-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/anyjson-0.3.3-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/distribute-0.7.3-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/setuptools-1.4-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PIL',
 '/usr/lib/python2.7/dist-packages/gst-0.10',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
 '/usr/lib/python2.7/dist-packages/ubuntuone-client',
 '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
 '/usr/lib/python2.7/dist-packages/ubuntuone-couch',
 '/usr/lib/python2.7/dist-packages/ubuntuone-installer',
 '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol',
 '/home/nikhil/mysite/askbot/deps']
'/home/nikhil/interviewcluster/askbot/deps']
Server time:    Thu, 5 Dec 2013 02:12:07 -0600

Got this error after trying to close a question I posted. No changes were done to the Askbot code