Invalid block tag: 'display_voiceclip_list', expected 'endwith'
Request Method: | GET |
---|---|
Request URL: | https://www.nigerianvoicebank.com/categories/radio-presenters |
Django Version: | 1.5 |
Exception Type: | TemplateSyntaxError |
Exception Value: | Invalid block tag: 'display_voiceclip_list', expected 'endwith' |
Exception Location: | /home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/base.py in invalid_block_tag, line 327 |
Python Executable: | /home/dayo/apps/nvb/venv/bin/python |
Python Version: | 2.7.5 |
Python Path: | ['/home/dayo/apps/nvb/voicebank', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/home/dayo/apps/nvb/venv/lib64/python2.7/site-packages', '/home/dayo/apps/nvb/venv/lib64/python2.7/site-packages/PIL', '/home/dayo/apps/nvb/venv/lib/python2.7/site-packages', '/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django', '/home/dayo/apps/nvb', '/home/dayo/apps/nvb/voicebank'] |
Server time: | Fri, 29 Mar 2024 12:28:12 +0100 |
In template /home/dayo/apps/nvb/voicebank/templates/vbank/category_detail.html
, error at line 23
13 | <div class="addthis_toolbox addthis_default_style"> |
---|---|
14 | <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> |
15 | <a class="addthis_button_tweet"></a> |
16 | </div> |
17 | <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-5190cafc142b9d5a"></script> |
18 | <!-- AddThis Button END --> |
19 | {% ifequal category.name 'Customer Care' %} |
20 | {% if english_clips %} |
21 | <h4>English</h4> |
22 | {% with voiceclip_list=english_clips %} |
23 | {% display_voiceclip_list %} |
24 | {% endwith %} |
25 | {% endif %} |
26 | {% if yoruba_clips %} |
27 | <h4>Yoruba</h4> |
28 | {% with voiceclip_list=yoruba_clips %} |
29 | {% display_voiceclip_list %} |
30 | {% endwith %} |
31 | {% endif %} |
32 | {% if igbo_clips %} |
33 | <h4>Igbo</h4> |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
for middleware_method in self._view_middleware:
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
try:
response = callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
# If the view raised an exception, run it through exception
# middleware, and if the exception middleware returns a
# response, use that. Otherwise, reraise the exception.
for middleware_method in self._exception_middleware:
response = middleware_method(request, e)
Variable | Value |
---|---|
e | TemplateSyntaxError(u"Invalid block tag: 'display_voiceclip_list', expected 'endwith'",) |
callback_args | () |
resolver_match | ResolverMatch(func=<function category_detail at 0x7f040d7eab90>, args=(), kwargs={'slug': u'radio-presenters'}, url_name='category', app_name='None', namespace='') |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f040ea3fdd0>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f041c5a5450> |
request | "<WSGIRequest\npath:/categories/radio-presenters,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/home/dayo/apps/nvb/apache2/htdocs',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'F5jaf6irPcB8hc1V9SMckg72CRNBk2yg',\n 'DOCUMENT_ROOT': '/home/dayo/apps/nvb/apache2/htdocs',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_CONNECTION': 'upgrade',\n 'HTTP_FORWARDED_REQUEST_URI': '/categories/radio-presenters',\n 'HTTP_HOST': 'www.nigerianvoicebank.com',\n 'HTTP_HTTPS': 'on',\n 'HTTP_REFERER': 'http://www.nigerianvoicebank.com/categories/radio-presenters',\n 'HTTP_USER_AGENT': 'claudebot',\n 'HTTP_X_FORWARDED_FOR': '3.239.239.71',\n 'HTTP_X_FORWARDED_HOST': 'www.nigerianvoicebank.com',\n 'HTTP_X_FORWARDED_PROTO': 'https',\n 'HTTP_X_FORWARDED_SERVER': 'www.nigerianvoicebank.com',\n 'HTTP_X_FORWARDED_SSL': 'on',\n 'LD_LIBRARY_PATH': '/home/dayo/apps/nvb/apache2/lib',\n 'PATH_INFO': u'/categories/radio-presenters',\n 'PATH_TRANSLATED': '/home/dayo/apps/nvb/voicebank.wsgi/categories/radio-presenters',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '127.0.0.1',\n 'REMOTE_PORT': '34494',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'http',\n 'REQUEST_URI': '/categories/radio-presenters',\n 'SCRIPT_FILENAME': '/home/dayo/apps/nvb/voicebank.wsgi',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '127.0.0.1',\n 'SERVER_ADMIN': '[no address given]',\n 'SERVER_NAME': 'www.nigerianvoicebank.com',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '',\n 'SERVER_SOFTWARE': 'Apache/2.4.41 (Unix) mod_wsgi/4.7.0 Python/2.7',\n 'apache.version': (2, 4, 41),\n 'mod_wsgi.application_group': 'opal13.opalstack.com|',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.daemon_connects': '1',\n 'mod_wsgi.daemon_restarts': '0',\n 'mod_wsgi.daemon_start': '1711711692813862',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.ignore_activity': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '57460',\n 'mod_wsgi.path_info': '/categories/radio-presenters',\n 'mod_wsgi.process_group': 'nvb',\n 'mod_wsgi.queue_start': '1711711692813554',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.request_id': 'YHRo7zLzpQE',\n 'mod_wsgi.request_start': '1711711692813408',\n 'mod_wsgi.script_name': '',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.script_start': '1711711692813973',\n 'mod_wsgi.thread_id': 2,\n 'mod_wsgi.thread_requests': 32232L,\n 'mod_wsgi.total_requests': 173712L,\n 'mod_wsgi.version': (4, 7, 0),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7f040d434c10>,\n 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7f040d485c00>,\n 'wsgi.input_terminated': True,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'https',\n 'wsgi.version': (1, 0)}>" |
callback | <function category_detail at 0x7f040d7eab90> |
resolver | <RegexURLResolver 'voicebank.urls' (None:None) ^/> |
callback_kwargs | {'slug': u'radio-presenters'} |
response | None |
urlconf | 'voicebank.urls' |
/home/dayo/apps/nvb/voicebank/vbank/views.py
in category_detail
def category_detail(request, slug, template='vbank/category_detail.html'):
category = get_object_or_404(Category, slug=slug)
if category.name != 'Customer Care':
return render_to_response(template, {
'category': category,
}, context_instance=RequestContext(request))...
else:
english_clips = VoiceClip.objects.filter(category=category).filter(language='English')
yoruba_clips = VoiceClip.objects.filter(category=category).filter(language='Yoruba')
igbo_clips = VoiceClip.objects.filter(category=category).filter(language='Igbo')
hausa_clips = VoiceClip.objects.filter(category=category).filter(language='Hausa')
pidgin_english_clips= VoiceClip.objects.filter(category=category).filter(language='Pidgin English')
Variable | Value |
---|---|
category | <Category: Radio Presenters> |
request | "<WSGIRequest\npath:/categories/radio-presenters,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/home/dayo/apps/nvb/apache2/htdocs',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'F5jaf6irPcB8hc1V9SMckg72CRNBk2yg',\n 'DOCUMENT_ROOT': '/home/dayo/apps/nvb/apache2/htdocs',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_CONNECTION': 'upgrade',\n 'HTTP_FORWARDED_REQUEST_URI': '/categories/radio-presenters',\n 'HTTP_HOST': 'www.nigerianvoicebank.com',\n 'HTTP_HTTPS': 'on',\n 'HTTP_REFERER': 'http://www.nigerianvoicebank.com/categories/radio-presenters',\n 'HTTP_USER_AGENT': 'claudebot',\n 'HTTP_X_FORWARDED_FOR': '3.239.239.71',\n 'HTTP_X_FORWARDED_HOST': 'www.nigerianvoicebank.com',\n 'HTTP_X_FORWARDED_PROTO': 'https',\n 'HTTP_X_FORWARDED_SERVER': 'www.nigerianvoicebank.com',\n 'HTTP_X_FORWARDED_SSL': 'on',\n 'LD_LIBRARY_PATH': '/home/dayo/apps/nvb/apache2/lib',\n 'PATH_INFO': u'/categories/radio-presenters',\n 'PATH_TRANSLATED': '/home/dayo/apps/nvb/voicebank.wsgi/categories/radio-presenters',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '127.0.0.1',\n 'REMOTE_PORT': '34494',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'http',\n 'REQUEST_URI': '/categories/radio-presenters',\n 'SCRIPT_FILENAME': '/home/dayo/apps/nvb/voicebank.wsgi',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '127.0.0.1',\n 'SERVER_ADMIN': '[no address given]',\n 'SERVER_NAME': 'www.nigerianvoicebank.com',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '',\n 'SERVER_SOFTWARE': 'Apache/2.4.41 (Unix) mod_wsgi/4.7.0 Python/2.7',\n 'apache.version': (2, 4, 41),\n 'mod_wsgi.application_group': 'opal13.opalstack.com|',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.daemon_connects': '1',\n 'mod_wsgi.daemon_restarts': '0',\n 'mod_wsgi.daemon_start': '1711711692813862',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.ignore_activity': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '57460',\n 'mod_wsgi.path_info': '/categories/radio-presenters',\n 'mod_wsgi.process_group': 'nvb',\n 'mod_wsgi.queue_start': '1711711692813554',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.request_id': 'YHRo7zLzpQE',\n 'mod_wsgi.request_start': '1711711692813408',\n 'mod_wsgi.script_name': '',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.script_start': '1711711692813973',\n 'mod_wsgi.thread_id': 2,\n 'mod_wsgi.thread_requests': 32232L,\n 'mod_wsgi.total_requests': 173712L,\n 'mod_wsgi.version': (4, 7, 0),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7f040d434c10>,\n 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7f040d485c00>,\n 'wsgi.input_terminated': True,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'https',\n 'wsgi.version': (1, 0)}>" |
slug | u'radio-presenters' |
template | 'vbank/category_detail.html' |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/shortcuts/__init__.py
in render_to_response
mimetype = kwargs.pop('mimetype', None)
if mimetype:
warnings.warn("The mimetype keyword argument is deprecated, use "
"content_type instead", PendingDeprecationWarning, stacklevel=2)
httpresponse_kwargs['content_type'] = mimetype
return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)...
def render(request, *args, **kwargs):
"""
Returns a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
Uses a RequestContext by default.
Variable | Value |
---|---|
mimetype | None |
httpresponse_kwargs | {'content_type': None} |
args | ('vbank/category_detail.html', {'category': <Category: Radio Presenters>}) |
kwargs | {'context_instance': [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f040d8b4cd0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f040d6e7b10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f040d8b4e50>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'en-us'}, {u'MEDIA_URL': '/site_media/'}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x7f040d8b4e10>}, {'ADMIN_MEDIA_PREFIX': '/static/admin/'}, {u'STATIC_URL': '/static/'}, {u'request': <WSGIRequest path:/categories/radio-presenters, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/home/dayo/apps/nvb/apache2/htdocs', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'F5jaf6irPcB8hc1V9SMckg72CRNBk2yg', 'DOCUMENT_ROOT': '/home/dayo/apps/nvb/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'upgrade', 'HTTP_FORWARDED_REQUEST_URI': '/categories/radio-presenters', 'HTTP_HOST': 'www.nigerianvoicebank.com', 'HTTP_HTTPS': 'on', 'HTTP_REFERER': 'http://www.nigerianvoicebank.com/categories/radio-presenters', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '3.239.239.71', 'HTTP_X_FORWARDED_HOST': 'www.nigerianvoicebank.com', 'HTTP_X_FORWARDED_PROTO': 'https', 'HTTP_X_FORWARDED_SERVER': 'www.nigerianvoicebank.com', 'HTTP_X_FORWARDED_SSL': 'on', 'LD_LIBRARY_PATH': '/home/dayo/apps/nvb/apache2/lib', 'PATH_INFO': u'/categories/radio-presenters', 'PATH_TRANSLATED': '/home/dayo/apps/nvb/voicebank.wsgi/categories/radio-presenters', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '34494', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/categories/radio-presenters', 'SCRIPT_FILENAME': '/home/dayo/apps/nvb/voicebank.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'www.nigerianvoicebank.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.41 (Unix) mod_wsgi/4.7.0 Python/2.7', 'apache.version': (2, 4, 41), 'mod_wsgi.application_group': 'opal13.opalstack.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711711692813862', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '57460', 'mod_wsgi.path_info': '/categories/radio-presenters', 'mod_wsgi.process_group': 'nvb', 'mod_wsgi.queue_start': '1711711692813554', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'YHRo7zLzpQE', 'mod_wsgi.request_start': '1711711692813408', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711711692813973', 'mod_wsgi.thread_id': 2, 'mod_wsgi.thread_requests': 32232L, 'mod_wsgi.total_requests': 173712L, 'mod_wsgi.version': (4, 7, 0), 'wsgi.errors': <mod_wsgi.Log object at 0x7f040d434c10>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7f040d485c00>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {'SITE_URL': 'http://nigerianvoicebank.com'}]} |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/loader.py
in render_to_string
get_template, or it may be a tuple to use select_template to find one of
the templates in the list. Returns a string.
"""
dictionary = dictionary or {}
if isinstance(template_name, (list, tuple)):
t = select_template(template_name)
else:
t = get_template(template_name)...
if not context_instance:
return t.render(Context(dictionary))
# Add the dictionary to the context stack, ensuring it gets removed again
# to keep the context_instance in the same state it started in.
context_instance.update(dictionary)
try:
Variable | Value |
---|---|
template_name | 'vbank/category_detail.html' |
context_instance | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f040d8b4cd0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f040d6e7b10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f040d8b4e50>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'en-us'}, {u'MEDIA_URL': '/site_media/'}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x7f040d8b4e10>}, {'ADMIN_MEDIA_PREFIX': '/static/admin/'}, {u'STATIC_URL': '/static/'}, {u'request': <WSGIRequest path:/categories/radio-presenters, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/home/dayo/apps/nvb/apache2/htdocs', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'F5jaf6irPcB8hc1V9SMckg72CRNBk2yg', 'DOCUMENT_ROOT': '/home/dayo/apps/nvb/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'upgrade', 'HTTP_FORWARDED_REQUEST_URI': '/categories/radio-presenters', 'HTTP_HOST': 'www.nigerianvoicebank.com', 'HTTP_HTTPS': 'on', 'HTTP_REFERER': 'http://www.nigerianvoicebank.com/categories/radio-presenters', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '3.239.239.71', 'HTTP_X_FORWARDED_HOST': 'www.nigerianvoicebank.com', 'HTTP_X_FORWARDED_PROTO': 'https', 'HTTP_X_FORWARDED_SERVER': 'www.nigerianvoicebank.com', 'HTTP_X_FORWARDED_SSL': 'on', 'LD_LIBRARY_PATH': '/home/dayo/apps/nvb/apache2/lib', 'PATH_INFO': u'/categories/radio-presenters', 'PATH_TRANSLATED': '/home/dayo/apps/nvb/voicebank.wsgi/categories/radio-presenters', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '34494', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/categories/radio-presenters', 'SCRIPT_FILENAME': '/home/dayo/apps/nvb/voicebank.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'www.nigerianvoicebank.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.41 (Unix) mod_wsgi/4.7.0 Python/2.7', 'apache.version': (2, 4, 41), 'mod_wsgi.application_group': 'opal13.opalstack.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711711692813862', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '57460', 'mod_wsgi.path_info': '/categories/radio-presenters', 'mod_wsgi.process_group': 'nvb', 'mod_wsgi.queue_start': '1711711692813554', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'YHRo7zLzpQE', 'mod_wsgi.request_start': '1711711692813408', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711711692813973', 'mod_wsgi.thread_id': 2, 'mod_wsgi.thread_requests': 32232L, 'mod_wsgi.total_requests': 173712L, 'mod_wsgi.version': (4, 7, 0), 'wsgi.errors': <mod_wsgi.Log object at 0x7f040d434c10>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7f040d485c00>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {'SITE_URL': 'http://nigerianvoicebank.com'}] |
dictionary | {'category': <Category: Radio Presenters>} |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/loader.py
in get_template
raise TemplateDoesNotExist(name)
def get_template(template_name):
"""
Returns a compiled Template object for the given template name,
handling template inheritance recursively.
"""
template, origin = find_template(template_name)...
if not hasattr(template, 'render'):
# template needs to be compiled
template = get_template_from_string(template, origin, template_name)
return template
def get_template_from_string(source, origin=None, name=None):
Variable | Value |
---|---|
template_name | 'vbank/category_detail.html' |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/loader.py
in find_template
for loader_name in settings.TEMPLATE_LOADERS:
loader = find_template_loader(loader_name)
if loader is not None:
loaders.append(loader)
template_source_loaders = tuple(loaders)
for loader in template_source_loaders:
try:
source, display_name = loader(name, dirs)...
return (source, make_origin(display_name, loader, name, dirs))
except TemplateDoesNotExist:
pass
raise TemplateDoesNotExist(name)
def get_template(template_name):
Variable | Value |
---|---|
dirs | None |
name | 'vbank/category_detail.html' |
loader | <django.template.loaders.filesystem.Loader object at 0x7f040d96d290> |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/loader.py
in __call__
class BaseLoader(object):
is_usable = False
def __init__(self, *args, **kwargs):
pass
def __call__(self, template_name, template_dirs=None):
return self.load_template(template_name, template_dirs)...
def load_template(self, template_name, template_dirs=None):
source, display_name = self.load_template_source(template_name, template_dirs)
origin = make_origin(display_name, self.load_template_source, template_name, template_dirs)
try:
template = get_template_from_string(source, origin, template_name)
Variable | Value |
---|---|
template_dirs | None |
template_name | 'vbank/category_detail.html' |
self | <django.template.loaders.filesystem.Loader object at 0x7f040d96d290> |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/loader.py
in load_template
def __call__(self, template_name, template_dirs=None):
return self.load_template(template_name, template_dirs)
def load_template(self, template_name, template_dirs=None):
source, display_name = self.load_template_source(template_name, template_dirs)
origin = make_origin(display_name, self.load_template_source, template_name, template_dirs)
try:
template = get_template_from_string(source, origin, template_name)...
return template, None
except TemplateDoesNotExist:
# If compiling the template we found raises TemplateDoesNotExist, back off to
# returning the source and display name for the template we were asked to load.
# This allows for correct identification (later) of the actual template that does
# not exist.
Variable | Value |
---|---|
origin | <django.template.loader.LoaderOrigin object at 0x7f040d6e74d0> |
template_dirs | None |
display_name | u'/home/dayo/apps/nvb/voicebank/templates/vbank/category_detail.html' |
template_name | 'vbank/category_detail.html' |
self | <django.template.loaders.filesystem.Loader object at 0x7f040d96d290> |
source | u'{% extends "base_inner.html" %}\n\n{% block page_url %}<meta property="og:url" content="http://nigerianvoicebank.com{{ request.path }}" />{% endblock %}\n\n{% load vbank_tags %}\n\n{% block app_body %}\n<div class="leftdiv">\n <h3>\n\tVoice clips in {{ category.name }} category\n </h3>\n {% if category.voiceclip_set.all %}\n\t<div class="addthis_toolbox addthis_default_style">\n\t <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>\n\t <a class="addthis_button_tweet"></a>\n\t</div>\n\t<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-5190cafc142b9d5a"></script>\n\t<!-- AddThis Button END -->\n\t{% ifequal category.name \'Customer Care\' %}\n\t {% if english_clips %}\n\t\t<h4>English</h4>\n\t\t{% with voiceclip_list=english_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t {% if yoruba_clips %}\n\t\t<h4>Yoruba</h4>\n\t\t{% with voiceclip_list=yoruba_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t {% if igbo_clips %}\n\t\t<h4>Igbo</h4>\n\t\t{% with voiceclip_list=igbo_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t {% if hausa_clips %}\n\t\t<h4>Hausa</h4>\n\t\t{% with voiceclip_list=hausa_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t {% if pidgin_english_clips %}\n\t\t<h4>Pidgin English</h4>\n\t\t{% with voiceclip_list=pidgin_english_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t{% else %}\n\t{% with voiceclip_list=category.voiceclip_set.all %}\n\t {% display_voiceclip_list %}\n\t{% endwith %}\n\t{% endifequal %}\n {% else %}\n\t<p>There are no voice clips in the category.</p>\n {% endif %} \n</div> <!--/leftdiv-->\n{% endblock %}\n' |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/loader.py
in get_template_from_string
return template
def get_template_from_string(source, origin=None, name=None):
"""
Returns a compiled Template object for the given template code,
handling template inheritance recursively.
"""
return Template(source, origin, name)...
def render_to_string(template_name, dictionary=None, context_instance=None):
"""
Loads the given template_name and renders it with the given dictionary as
context. The template_name may be a string to load a single template using
get_template, or it may be a tuple to use select_template to find one of
Variable | Value |
---|---|
origin | <django.template.loader.LoaderOrigin object at 0x7f040d6e74d0> |
source | u'{% extends "base_inner.html" %}\n\n{% block page_url %}<meta property="og:url" content="http://nigerianvoicebank.com{{ request.path }}" />{% endblock %}\n\n{% load vbank_tags %}\n\n{% block app_body %}\n<div class="leftdiv">\n <h3>\n\tVoice clips in {{ category.name }} category\n </h3>\n {% if category.voiceclip_set.all %}\n\t<div class="addthis_toolbox addthis_default_style">\n\t <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>\n\t <a class="addthis_button_tweet"></a>\n\t</div>\n\t<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-5190cafc142b9d5a"></script>\n\t<!-- AddThis Button END -->\n\t{% ifequal category.name \'Customer Care\' %}\n\t {% if english_clips %}\n\t\t<h4>English</h4>\n\t\t{% with voiceclip_list=english_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t {% if yoruba_clips %}\n\t\t<h4>Yoruba</h4>\n\t\t{% with voiceclip_list=yoruba_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t {% if igbo_clips %}\n\t\t<h4>Igbo</h4>\n\t\t{% with voiceclip_list=igbo_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t {% if hausa_clips %}\n\t\t<h4>Hausa</h4>\n\t\t{% with voiceclip_list=hausa_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t {% if pidgin_english_clips %}\n\t\t<h4>Pidgin English</h4>\n\t\t{% with voiceclip_list=pidgin_english_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t{% else %}\n\t{% with voiceclip_list=category.voiceclip_set.all %}\n\t {% display_voiceclip_list %}\n\t{% endwith %}\n\t{% endifequal %}\n {% else %}\n\t<p>There are no voice clips in the category.</p>\n {% endif %} \n</div> <!--/leftdiv-->\n{% endblock %}\n' |
name | 'vbank/category_detail.html' |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/base.py
in __init__
try:
template_string = force_text(template_string)
except UnicodeDecodeError:
raise TemplateEncodingError("Templates can only be constructed "
"from unicode or UTF-8 strings.")
if settings.TEMPLATE_DEBUG and origin is None:
origin = StringOrigin(template_string)
self.nodelist = compile_string(template_string, origin)...
self.name = name
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
Variable | Value |
---|---|
origin | <django.template.loader.LoaderOrigin object at 0x7f040d6e74d0> |
template_string | u'{% extends "base_inner.html" %}\n\n{% block page_url %}<meta property="og:url" content="http://nigerianvoicebank.com{{ request.path }}" />{% endblock %}\n\n{% load vbank_tags %}\n\n{% block app_body %}\n<div class="leftdiv">\n <h3>\n\tVoice clips in {{ category.name }} category\n </h3>\n {% if category.voiceclip_set.all %}\n\t<div class="addthis_toolbox addthis_default_style">\n\t <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>\n\t <a class="addthis_button_tweet"></a>\n\t</div>\n\t<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-5190cafc142b9d5a"></script>\n\t<!-- AddThis Button END -->\n\t{% ifequal category.name \'Customer Care\' %}\n\t {% if english_clips %}\n\t\t<h4>English</h4>\n\t\t{% with voiceclip_list=english_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t {% if yoruba_clips %}\n\t\t<h4>Yoruba</h4>\n\t\t{% with voiceclip_list=yoruba_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t {% if igbo_clips %}\n\t\t<h4>Igbo</h4>\n\t\t{% with voiceclip_list=igbo_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t {% if hausa_clips %}\n\t\t<h4>Hausa</h4>\n\t\t{% with voiceclip_list=hausa_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t {% if pidgin_english_clips %}\n\t\t<h4>Pidgin English</h4>\n\t\t{% with voiceclip_list=pidgin_english_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t{% else %}\n\t{% with voiceclip_list=category.voiceclip_set.all %}\n\t {% display_voiceclip_list %}\n\t{% endwith %}\n\t{% endifequal %}\n {% else %}\n\t<p>There are no voice clips in the category.</p>\n {% endif %} \n</div> <!--/leftdiv-->\n{% endblock %}\n' |
self | <django.template.base.Template object at 0x7f040d6e7b50> |
name | 'vbank/category_detail.html' |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/base.py
in compile_string
if settings.TEMPLATE_DEBUG:
from django.template.debug import DebugLexer, DebugParser
lexer_class, parser_class = DebugLexer, DebugParser
else:
lexer_class, parser_class = Lexer, Parser
lexer = lexer_class(template_string, origin)
parser = parser_class(lexer.tokenize())
return parser.parse()...
class Token(object):
def __init__(self, token_type, contents):
# token_type must be TOKEN_TEXT, TOKEN_VAR, TOKEN_BLOCK or
# TOKEN_COMMENT.
self.token_type, self.contents = token_type, contents
Variable | Value |
---|---|
lexer_class | <class 'django.template.debug.DebugLexer'> |
origin | <django.template.loader.LoaderOrigin object at 0x7f040d6e74d0> |
DebugLexer | <class 'django.template.debug.DebugLexer'> |
lexer | <django.template.debug.DebugLexer object at 0x7f040d6e7490> |
parser | <django.template.debug.DebugParser object at 0x7f040d4f5bd0> |
template_string | u'{% extends "base_inner.html" %}\n\n{% block page_url %}<meta property="og:url" content="http://nigerianvoicebank.com{{ request.path }}" />{% endblock %}\n\n{% load vbank_tags %}\n\n{% block app_body %}\n<div class="leftdiv">\n <h3>\n\tVoice clips in {{ category.name }} category\n </h3>\n {% if category.voiceclip_set.all %}\n\t<div class="addthis_toolbox addthis_default_style">\n\t <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>\n\t <a class="addthis_button_tweet"></a>\n\t</div>\n\t<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-5190cafc142b9d5a"></script>\n\t<!-- AddThis Button END -->\n\t{% ifequal category.name \'Customer Care\' %}\n\t {% if english_clips %}\n\t\t<h4>English</h4>\n\t\t{% with voiceclip_list=english_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t {% if yoruba_clips %}\n\t\t<h4>Yoruba</h4>\n\t\t{% with voiceclip_list=yoruba_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t {% if igbo_clips %}\n\t\t<h4>Igbo</h4>\n\t\t{% with voiceclip_list=igbo_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t {% if hausa_clips %}\n\t\t<h4>Hausa</h4>\n\t\t{% with voiceclip_list=hausa_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t {% if pidgin_english_clips %}\n\t\t<h4>Pidgin English</h4>\n\t\t{% with voiceclip_list=pidgin_english_clips %}\n\t\t {% display_voiceclip_list %}\n\t\t{% endwith %}\n\t {% endif %}\n\t{% else %}\n\t{% with voiceclip_list=category.voiceclip_set.all %}\n\t {% display_voiceclip_list %}\n\t{% endwith %}\n\t{% endifequal %}\n {% else %}\n\t<p>There are no voice clips in the category.</p>\n {% endif %} \n</div> <!--/leftdiv-->\n{% endblock %}\n' |
DebugParser | <class 'django.template.debug.DebugParser'> |
parser_class | <class 'django.template.debug.DebugParser'> |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/base.py
in parse
# resulting node
self.enter_command(command, token)
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
try:
compiled_result = compile_func(self, token)...
except TemplateSyntaxError as e:
if not self.compile_function_error(token, e):
raise
self.extend_nodelist(nodelist, compiled_result, token)
self.exit_command()
if parse_until:
Variable | Value |
---|---|
nodelist | [] |
self | <django.template.debug.DebugParser object at 0x7f040d4f5bd0> |
command | u'extends' |
token | <django.template.base.Token object at 0x7f040d6e7c90> |
parse_until | [] |
compile_func | <function do_extends at 0x7f040dd62140> |
e | TemplateSyntaxError(u"Invalid block tag: 'display_voiceclip_list', expected 'endwith'",) |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/loader_tags.py
in do_extends
name of the parent template to extend (if it evaluates to a string) or as
the parent tempate itelf (if it evaluates to a Template object).
"""
bits = token.split_contents()
if len(bits) != 2:
raise TemplateSyntaxError("'%s' takes one argument" % bits[0])
parent_name = parser.compile_filter(bits[1])
nodelist = parser.parse()...
if nodelist.get_nodes_by_type(ExtendsNode):
raise TemplateSyntaxError("'%s' cannot appear more than once in the same template" % bits[0])
return ExtendsNode(nodelist, parent_name)
@register.tag('include')
def do_include(parser, token):
Variable | Value |
---|---|
parent_name | <django.template.base.FilterExpression object at 0x7f040d4f57d0> |
token | <django.template.base.Token object at 0x7f040d6e7c90> |
parser | <django.template.debug.DebugParser object at 0x7f040d4f5bd0> |
bits | [u'extends', u'"base_inner.html"'] |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/base.py
in parse
# resulting node
self.enter_command(command, token)
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
try:
compiled_result = compile_func(self, token)...
except TemplateSyntaxError as e:
if not self.compile_function_error(token, e):
raise
self.extend_nodelist(nodelist, compiled_result, token)
self.exit_command()
if parse_until:
Variable | Value |
---|---|
compiled_result | <django.template.defaulttags.LoadNode object at 0x7f040d6e7750> |
nodelist | [<Text Node: ' '>, <Block Node: page_url. Contents: [<Text Node: '<meta property="og:url" c'>, <Variable Node: request.path>, <Text Node: '" />'>]>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7f040d6e7750>, <Text Node: ' '>] |
self | <django.template.debug.DebugParser object at 0x7f040d4f5bd0> |
command | u'block' |
token | <django.template.base.Token object at 0x7f040d6e7a10> |
parse_until | [] |
compile_func | <function do_block at 0x7f040dd620c8> |
e | TemplateSyntaxError(u"Invalid block tag: 'display_voiceclip_list', expected 'endwith'",) |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/loader_tags.py
in do_block
# check for duplication.
try:
if block_name in parser.__loaded_blocks:
raise TemplateSyntaxError("'%s' tag with name '%s' appears more than once" % (bits[0], block_name))
parser.__loaded_blocks.append(block_name)
except AttributeError: # parser.__loaded_blocks isn't a list yet
parser.__loaded_blocks = [block_name]
nodelist = parser.parse(('endblock',))...
# This check is kept for backwards-compatibility. See #3100.
endblock = parser.next_token()
acceptable_endblocks = ('endblock', 'endblock %s' % block_name)
if endblock.contents not in acceptable_endblocks:
parser.invalid_block_tag(endblock, 'endblock', acceptable_endblocks)
Variable | Value |
---|---|
block_name | u'app_body' |
token | <django.template.base.Token object at 0x7f040d6e7a10> |
parser | <django.template.debug.DebugParser object at 0x7f040d4f5bd0> |
bits | [u'block', u'app_body'] |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/base.py
in parse
# resulting node
self.enter_command(command, token)
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
try:
compiled_result = compile_func(self, token)...
except TemplateSyntaxError as e:
if not self.compile_function_error(token, e):
raise
self.extend_nodelist(nodelist, compiled_result, token)
self.exit_command()
if parse_until:
Variable | Value |
---|---|
filter_expression | <django.template.base.FilterExpression object at 0x7f040d6e7b90> |
nodelist | [<Text Node: ' <div class="leftdiv"> '>, <Variable Node: category.name>, <Text Node: ' category </h3> '>] |
var_node | <Variable Node: category.name> |
command | u'if' |
token | <django.template.base.Token object at 0x7f040d6e7410> |
parse_until | ('endblock',) |
compile_func | <function do_if at 0x7f040ead4410> |
e | TemplateSyntaxError(u"Invalid block tag: 'display_voiceclip_list', expected 'endwith'",) |
self | <django.template.debug.DebugParser object at 0x7f040d4f5bd0> |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/defaulttags.py
in do_if
``==`` (or ``=``), ``!=``, ``>``, ``>=``, ``<`` and ``<=``.
Operator precedence follows Python.
"""
# {% if ... %}
bits = token.split_contents()[1:]
condition = TemplateIfParser(parser, bits).parse()
nodelist = parser.parse(('elif', 'else', 'endif'))...
conditions_nodelists = [(condition, nodelist)]
token = parser.next_token()
# {% elif ... %} (repeatable)
while token.contents.startswith('elif'):
bits = token.split_contents()[1:]
Variable | Value |
---|---|
token | <django.template.base.Token object at 0x7f040d6e7410> |
parser | <django.template.debug.DebugParser object at 0x7f040d4f5bd0> |
bits | [u'category.voiceclip_set.all'] |
condition | (literal <django.template.base.FilterExpression object at 0x7f040d6e7c10>) |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/base.py
in parse
# resulting node
self.enter_command(command, token)
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
try:
compiled_result = compile_func(self, token)...
except TemplateSyntaxError as e:
if not self.compile_function_error(token, e):
raise
self.extend_nodelist(nodelist, compiled_result, token)
self.exit_command()
if parse_until:
Variable | Value |
---|---|
nodelist | [<Text Node: ' <div class="addthis_too'>] |
self | <django.template.debug.DebugParser object at 0x7f040d4f5bd0> |
command | u'ifequal' |
token | <django.template.base.Token object at 0x7f040d6e71d0> |
parse_until | (u'elif', u'else', u'endif') |
compile_func | <function ifequal at 0x7f040ead4050> |
e | TemplateSyntaxError(u"Invalid block tag: 'display_voiceclip_list', expected 'endwith'",) |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/defaulttags.py
in ifequal
{% ifnotequal user.id comment.user_id %}
...
{% else %}
...
{% endifnotequal %}
"""
return do_ifequal(parser, token, False)...
@register.tag
def ifnotequal(parser, token):
"""
Outputs the contents of the block if the two arguments are not equal.
See ifequal.
Variable | Value |
---|---|
token | <django.template.base.Token object at 0x7f040d6e71d0> |
parser | <django.template.debug.DebugParser object at 0x7f040d4f5bd0> |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/defaulttags.py
in do_ifequal
return ForNode(loopvars, sequence, is_reversed, nodelist_loop, nodelist_empty)
def do_ifequal(parser, token, negate):
bits = list(token.split_contents())
if len(bits) != 3:
raise TemplateSyntaxError("%r takes two arguments" % bits[0])
end_tag = 'end' + bits[0]
nodelist_true = parser.parse(('else', end_tag))...
token = parser.next_token()
if token.contents == 'else':
nodelist_false = parser.parse((end_tag,))
parser.delete_first_token()
else:
nodelist_false = NodeList()
Variable | Value |
---|---|
negate | False |
token | <django.template.base.Token object at 0x7f040d6e71d0> |
parser | <django.template.debug.DebugParser object at 0x7f040d4f5bd0> |
bits | [u'ifequal', u'category.name', u"'Customer Care'"] |
end_tag | u'endifequal' |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/base.py
in parse
# resulting node
self.enter_command(command, token)
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
try:
compiled_result = compile_func(self, token)...
except TemplateSyntaxError as e:
if not self.compile_function_error(token, e):
raise
self.extend_nodelist(nodelist, compiled_result, token)
self.exit_command()
if parse_until:
Variable | Value |
---|---|
nodelist | [<Text Node: ' '>] |
self | <django.template.debug.DebugParser object at 0x7f040d4f5bd0> |
command | u'if' |
token | <django.template.base.Token object at 0x7f040d6e7090> |
parse_until | (u'else', u'endifequal') |
compile_func | <function do_if at 0x7f040ead4410> |
e | TemplateSyntaxError(u"Invalid block tag: 'display_voiceclip_list', expected 'endwith'",) |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/defaulttags.py
in do_if
``==`` (or ``=``), ``!=``, ``>``, ``>=``, ``<`` and ``<=``.
Operator precedence follows Python.
"""
# {% if ... %}
bits = token.split_contents()[1:]
condition = TemplateIfParser(parser, bits).parse()
nodelist = parser.parse(('elif', 'else', 'endif'))...
conditions_nodelists = [(condition, nodelist)]
token = parser.next_token()
# {% elif ... %} (repeatable)
while token.contents.startswith('elif'):
bits = token.split_contents()[1:]
Variable | Value |
---|---|
token | <django.template.base.Token object at 0x7f040d6e7090> |
parser | <django.template.debug.DebugParser object at 0x7f040d4f5bd0> |
bits | [u'english_clips'] |
condition | (literal <django.template.base.FilterExpression object at 0x7f040d46afd0>) |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/base.py
in parse
# resulting node
self.enter_command(command, token)
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
try:
compiled_result = compile_func(self, token)...
except TemplateSyntaxError as e:
if not self.compile_function_error(token, e):
raise
self.extend_nodelist(nodelist, compiled_result, token)
self.exit_command()
if parse_until:
Variable | Value |
---|---|
nodelist | [<Text Node: ' <h4>English</h4> '>] |
self | <django.template.debug.DebugParser object at 0x7f040d4f5bd0> |
command | u'with' |
token | <django.template.base.Token object at 0x7f040d6e7ad0> |
parse_until | (u'elif', u'else', u'endif') |
compile_func | <function do_with at 0x7f040ead4938> |
e | TemplateSyntaxError(u"Invalid block tag: 'display_voiceclip_list', expected 'endwith'",) |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/defaulttags.py
in do_with
extra_context = token_kwargs(remaining_bits, parser, support_legacy=True)
if not extra_context:
raise TemplateSyntaxError("%r expected at least one variable "
"assignment" % bits[0])
if remaining_bits:
raise TemplateSyntaxError("%r received an invalid token: %r" %
(bits[0], remaining_bits[0]))
nodelist = parser.parse(('endwith',))...
parser.delete_first_token()
return WithNode(None, None, nodelist, extra_context=extra_context)
Variable | Value |
---|---|
remaining_bits | [] |
token | <django.template.base.Token object at 0x7f040d6e7ad0> |
extra_context | {u'voiceclip_list': <django.template.base.FilterExpression object at 0x7f040d46a590>} |
bits | [u'with', u'voiceclip_list=english_clips'] |
parser | <django.template.debug.DebugParser object at 0x7f040d4f5bd0> |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/base.py
in parse
return nodelist
# execute callback function for this tag and append
# resulting node
self.enter_command(command, token)
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)...
try:
compiled_result = compile_func(self, token)
except TemplateSyntaxError as e:
if not self.compile_function_error(token, e):
raise
self.extend_nodelist(nodelist, compiled_result, token)
Variable | Value |
---|---|
command | u'display_voiceclip_list' |
token | <django.template.base.Token object at 0x7f040d7066d0> |
parse_until | (u'endwith',) |
nodelist | [<Text Node: ' '>] |
self | <django.template.debug.DebugParser object at 0x7f040d4f5bd0> |
/home/dayo/apps/nvb/venv/lib/python2.7/site-packages/django/template/base.py
in invalid_block_tag
def empty_block_tag(self, token):
raise self.error(token, "Empty block tag")
def invalid_block_tag(self, token, command, parse_until=None):
if parse_until:
raise self.error(token, "Invalid block tag: '%s', expected %s" %
(command, get_text_list(["'%s'" % p for p in parse_until])))...
raise self.error(token, "Invalid block tag: '%s'" % command)
def unclosed_block_tag(self, parse_until):
raise self.error(None, "Unclosed tags: %s " % ', '.join(parse_until))
def compile_function_error(self, token, e):
Variable | Value |
---|---|
p | u'endwith' |
token | <django.template.base.Token object at 0x7f040d7066d0> |
parse_until | (u'endwith',) |
command | u'display_voiceclip_list' |
self | <django.template.debug.DebugParser object at 0x7f040d4f5bd0> |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
mod_wsgi.listener_port | '57460' |
HTTP_X_FORWARDED_SERVER | 'www.nigerianvoicebank.com' |
HTTP_REFERER | 'http://www.nigerianvoicebank.com/categories/radio-presenters' |
mod_wsgi.listener_host | '' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'Apache/2.4.41 (Unix) mod_wsgi/4.7.0 Python/2.7' |
SCRIPT_NAME | u'' |
mod_wsgi.enable_sendfile | '0' |
mod_wsgi.handler_script | '' |
SERVER_SIGNATURE | '' |
REQUEST_METHOD | 'GET' |
HTTP_HTTPS | 'on' |
PATH_INFO | u'/categories/radio-presenters' |
HTTP_X_FORWARDED_SSL | 'on' |
QUERY_STRING | '' |
LD_LIBRARY_PATH | '/home/dayo/apps/nvb/apache2/lib' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_CONNECTION | 'upgrade' |
SERVER_NAME | 'www.nigerianvoicebank.com' |
REMOTE_ADDR | '127.0.0.1' |
mod_wsgi.queue_start | '1711711692813554' |
mod_wsgi.request_handler | 'wsgi-script' |
apache.version | (2, 4, 41) |
mod_wsgi.thread_id | 2 |
wsgi.url_scheme | 'https' |
mod_wsgi.thread_requests | 32232L |
PATH_TRANSLATED | '/home/dayo/apps/nvb/voicebank.wsgi/categories/radio-presenters' |
SERVER_PORT | '80' |
mod_wsgi.daemon_connects | '1' |
wsgi.multiprocess | True |
SERVER_ADDR | '127.0.0.1' |
DOCUMENT_ROOT | '/home/dayo/apps/nvb/apache2/htdocs' |
mod_wsgi.process_group | 'nvb' |
CONTEXT_DOCUMENT_ROOT | '/home/dayo/apps/nvb/apache2/htdocs' |
HTTP_X_FORWARDED_PROTO | 'https' |
mod_wsgi.request_id | 'YHRo7zLzpQE' |
SCRIPT_FILENAME | '/home/dayo/apps/nvb/voicebank.wsgi' |
SERVER_ADMIN | '[no address given]' |
mod_wsgi.ignore_activity | '0' |
wsgi.input | <mod_wsgi.Input object at 0x7f040d485c00> |
HTTP_HOST | 'www.nigerianvoicebank.com' |
CONTEXT_PREFIX | '' |
wsgi.multithread | True |
mod_wsgi.callable_object | 'application' |
mod_wsgi.daemon_restarts | '0' |
REQUEST_URI | '/categories/radio-presenters' |
HTTP_ACCEPT | '*/*' |
mod_wsgi.path_info | '/categories/radio-presenters' |
HTTP_FORWARDED_REQUEST_URI | '/categories/radio-presenters' |
wsgi.file_wrapper | '' |
wsgi.version | (1, 0) |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTP_X_FORWARDED_FOR | '3.239.239.71' |
mod_wsgi.script_name | '' |
REMOTE_PORT | '34494' |
HTTP_X_FORWARDED_HOST | 'www.nigerianvoicebank.com' |
REQUEST_SCHEME | 'http' |
mod_wsgi.version | (4, 7, 0) |
wsgi.input_terminated | True |
wsgi.run_once | False |
mod_wsgi.script_start | '1711711692813973' |
mod_wsgi.total_requests | 173712L |
mod_wsgi.application_group | 'opal13.opalstack.com|' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.request_start | '1711711692813408' |
CSRF_COOKIE | u'F5jaf6irPcB8hc1V9SMckg72CRNBk2yg' |
wsgi.errors | <mod_wsgi.Log object at 0x7f040d434c10> |
mod_wsgi.daemon_start | '1711711692813862' |
voicebank.settings_live
Setting | Value |
---|---|
USE_L10N | True |
SITE_URL | 'http://nigerianvoicebank.com' |
EVENTS_PAGINATE_BY | 5 |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'en-us' |
ROOT_URLCONF | 'voicebank.urls' |
MANAGERS | ('Dayo Osikoya', 'alwaysdeone@gmail.com') |
DEFAULT_CHARSET | 'utf-8' |
STATIC_ROOT | '/home/dayo/apps/nvb/voicebank/../../../nvb_static' |
MUSICBOX_ALBUMS_PAGINATE_BY | 20 |
USE_THOUSAND_SEPARATOR | False |
PODCAST_CHANNELS_PAGINATE_BY | 20 |
ALLOWED_HOSTS | ['www.nigerianvoicebank.com', 'nigerianvoicebank.com', 'www.nvb.ng', 'nvb.ng', 'www.africanvo.com', 'africanvo.com'] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.session.SessionStorage' |
WSGI_APPLICATION | None |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SEND_BROKEN_LINK_EMAILS | False |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
ADMIN_FOR | () |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M') |
DATABASES | {'default': {'ENGINE': 'django.db.backends.mysql', 'HOST': '', 'NAME': 'nvb_voicebank', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'Africa/Lagos', 'USER': 'deone_voicebank'}} |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
DEFAULT_CONTENT_TYPE | 'text/html' |
APPEND_SLASH | True |
FIRST_DAY_OF_WEEK | 0 |
DATABASE_ROUTERS | [] |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
SERVER_EMAIL | 'root@localhost' |
SESSION_COOKIE_PATH | '/' |
TOP_VOICE_CLIPS_DISPLAY_LIMIT | 5 |
MIDDLEWARE_CLASSES | ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
DEFAULT_INDEX_TABLESPACE | '' |
TRANSACTIONS_MANAGED | False |
LOGGING_CONFIG | 'django.utils.log.dictConfig' |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
VOICECLIP_LIST_PAGINATE_BY | 20 |
TEMPLATE_DEBUG | True |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend',) |
FORCE_SCRIPT_NAME | None |
USE_X_FORWARDED_HOST | False |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SESSION_COOKIE_SECURE | False |
ARTICLE_LIST_LIMIT | 4 |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
SESSION_FILE_PATH | None |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
INSTALLED_APPS | ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.admin', 'django.contrib.staticfiles', 'django.contrib.comments', 'django.contrib.flatpages', 'sorl.thumbnail', 'agon_ratings', 'accounts', 'vbank', 'events', 'booking', 'contact', 'articles', 'sounds', 'musicbox', 'podcast') |
LANGUAGES | (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')) |
COMMENTS_ALLOW_PROFANITIES | False |
STATICFILES_DIRS | ('/home/dayo/apps/nvb/voicebank/static',) |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
AUTH_PROFILE_MODULE | 'accounts.Profile' |
SESSION_COOKIE_HTTPONLY | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
MONTH_DAY_FORMAT | 'F j' |
LOGIN_URL | 'login' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
TIME_FORMAT | 'P' |
AUTH_USER_MODEL | 'auth.User' |
DATE_INPUT_FORMATS | ('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y') |
CSRF_COOKIE_NAME | 'csrftoken' |
EMAIL_HOST_PASSWORD | u'********************' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
CACHE_MIDDLEWARE_ALIAS | 'default' |
SESSION_SAVE_EVERY_REQUEST | False |
ADMIN_MEDIA_PREFIX | '/static/admin/' |
NUMBER_GROUPING | 0 |
EVENTS_DISPLAY_LIMIT | 2 |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
LOGIN_REDIRECT_URL | 'profile_edit' |
DECIMAL_SEPARATOR | '.' |
IGNORABLE_404_URLS | () |
LOCALE_PATHS | () |
TEMPLATE_STRING_IF_INVALID | '' |
WELCOME_MSG_SUBJECT | 'Your Nigerian Voice Bank Account' |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | True |
FIXTURE_DIRS | () |
EMAIL_HOST | 'smtp.gmail.com' |
DATE_FORMAT | 'N j, Y' |
MEDIA_ROOT | '/home/dayo/apps/nvb/voicebank/site_media' |
STATICFILE_DIRS | ('/home/dayo/apps/nvb/voicebank/static',) |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | ('Dayo Osikoya', 'alwaysdeone@gmail.com') |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'Nigerian Voice Bank<noreply@nigerianvoicebank.com>' |
MEDIA_URL | '/site_media/' |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | ('/home/dayo/apps/nvb/voicebank/templates',) |
SITE_ID | 1 |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
RECENT_VOICE_CLIPS_DISPLAY_LIMIT | 5 |
LOGGING | {} |
PROJECT_DIR | '/home/dayo/apps/nvb/voicebank' |
TEST_RUNNER | 'django.test.simple.DjangoTestSuiteRunner' |
SHORT_DATE_FORMAT | 'm/d/Y' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
TIME_ZONE | 'Africa/Lagos' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
DEFAULT_TABLESPACE | '' |
TEMPLATE_CONTEXT_PROCESSORS | ('django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.contrib.messages.context_processors.messages', 'context_processors.admin_media_prefix', 'django.core.context_processors.static', 'django.core.context_processors.request', 'context_processors.site') |
THUMBNAIL_DEBUG | True |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'voicebank.settings_live' |
USE_ETAGS | False |
LANGUAGES_BIDI | ('he', 'ar', 'fa') |
FILE_UPLOAD_TEMP_DIR | None |
INTERNAL_IPS | () |
STATIC_URL | '/static/' |
EMAIL_PORT | 587 |
USE_TZ | False |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
PASSWORD_HASHERS | u'********************' |
ABSOLUTE_URL_OVERRIDES | {} |
CACHE_MIDDLEWARE_SECONDS | 600 |
DATETIME_INPUT_FORMATS | ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y') |
EMAIL_HOST_USER | 'incisiaappmailer@gmail.com' |
PROFANITIES_LIST | u'********************' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard 500 page.