captcha/widget.html
Request Method: | GET |
---|---|
Request URL: | http://spliceosomedb.ucsc.edu/comments |
Django Version: | 1.5 |
Exception Type: | TemplateDoesNotExist |
Exception Value: | captcha/widget.html |
Exception Location: | /usr/lib/python2.7/site-packages/django/template/loader.py in find_template, line 139 |
Python Executable: | /usr/bin/python |
Python Version: | 2.7.18 |
Python Path: | ['/usr/lib/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', '/usr/lib64/python2.7/site-packages', '/usr/lib/python2.7/site-packages', '/usr/local/django/djangotest', '/usr/local/django/djangotest/SpliceProtDB', '/home/ivan/site/SpliceProtDB/'] |
Server time: | Thu, 28 Mar 2024 22:00:57 -0700 |
Django tried loading these templates, in this order:
django.template.loaders.filesystem.Loader
:
/usr/local/django/djangotest/SpliceProtDB/templates/captcha/widget.html
(File does not exist)django.template.loaders.app_directories.Loader
:
/usr/lib/python2.7/site-packages/django/contrib/auth/templates/captcha/widget.html
(File does not exist)/usr/lib/python2.7/site-packages/django/contrib/admin/templates/captcha/widget.html
(File does not exist)/usr/lib/python2.7/site-packages/django/contrib/admindocs/templates/captcha/widget.html
(File does not exist)/usr/lib/python2.7/site-packages/django_tables2/templates/captcha/widget.html
(File does not exist)/usr/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 | TemplateDoesNotExist('captcha/widget.html',) |
callback_args | () |
resolver_match | ResolverMatch(func=<function submit_comment at 0x7fc8c7746c50>, args=(), kwargs={}, url_name='comments', app_name='None', namespace='') |
middleware_method | <bound method DeleteSessionOnLogoutMiddleware.process_view of <SpliceProtDB.middleware.DeleteSessionOnLogoutMiddleware object at 0x7fc8c7cee150>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fc8e34c10d0> |
request | "<WSGIRequest\npath:/comments,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X',\n u'CSRF_COOKIE_USED': True,\n 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'spliceosomedb.ucsc.edu',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/comments',\n 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '54.90.236.179',\n 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com',\n 'REMOTE_PORT': '37094',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'http',\n 'REQUEST_URI': '/comments',\n 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '128.114.144.41',\n 'SERVER_ADMIN': 'mjurica@ucsc.edu',\n 'SERVER_NAME': 'spliceosomedb.ucsc.edu',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '',\n 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7',\n 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU',\n 'apache.version': (2, 4, 37),\n 'mod_wsgi.application_group': '',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc',\n 'mod_wsgi.daemon_connects': '1',\n 'mod_wsgi.daemon_restarts': '0',\n 'mod_wsgi.daemon_start': '1711688456967776',\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': '80',\n 'mod_wsgi.path_info': '/comments',\n 'mod_wsgi.process_group': 'splicedb-test',\n 'mod_wsgi.queue_start': '1711688456967638',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU',\n 'mod_wsgi.request_start': '1711688456965796',\n 'mod_wsgi.script_name': '',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.script_start': '1711688456968002',\n 'mod_wsgi.thread_id': 3,\n 'mod_wsgi.thread_requests': 566L,\n 'mod_wsgi.total_requests': 2205L,\n 'mod_wsgi.version': (4, 9, 4),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>,\n 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>,\n 'wsgi.input_terminated': True,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
callback | <function submit_comment at 0x7fc8c7746c50> |
resolver | <RegexURLResolver 'SpliceProtDB.urls' (None:None) ^/> |
callback_kwargs | {} |
response | None |
urlconf | 'SpliceProtDB.urls' |
/usr/local/django/djangotest/SpliceProtDB/db_interface/views.py
in submit_comment
# 'django@baruto.ucsc.edu',
recipient_list=['icvitkovic@gmail.com', 'mjurica@ucsc.edu'],
fail_silently=True
)
context_dict = {'comment_form':comment_form,}
context_dict.update(csrf(request))
return render_response(request, 'comment_form.dj.html', context_dict)...
def base(request):
return render_response(request, 'base.dj.html')
def static_pages(request, page):
return render_response(request, '%s.dj.html' % page)
Variable | Value |
---|---|
context_dict | {'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>, u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>} |
comment_form | <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850> |
request | "<WSGIRequest\npath:/comments,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X',\n u'CSRF_COOKIE_USED': True,\n 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'spliceosomedb.ucsc.edu',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/comments',\n 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '54.90.236.179',\n 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com',\n 'REMOTE_PORT': '37094',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'http',\n 'REQUEST_URI': '/comments',\n 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '128.114.144.41',\n 'SERVER_ADMIN': 'mjurica@ucsc.edu',\n 'SERVER_NAME': 'spliceosomedb.ucsc.edu',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '',\n 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7',\n 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU',\n 'apache.version': (2, 4, 37),\n 'mod_wsgi.application_group': '',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc',\n 'mod_wsgi.daemon_connects': '1',\n 'mod_wsgi.daemon_restarts': '0',\n 'mod_wsgi.daemon_start': '1711688456967776',\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': '80',\n 'mod_wsgi.path_info': '/comments',\n 'mod_wsgi.process_group': 'splicedb-test',\n 'mod_wsgi.queue_start': '1711688456967638',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU',\n 'mod_wsgi.request_start': '1711688456965796',\n 'mod_wsgi.script_name': '',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.script_start': '1711688456968002',\n 'mod_wsgi.thread_id': 3,\n 'mod_wsgi.thread_requests': 566L,\n 'mod_wsgi.total_requests': 2205L,\n 'mod_wsgi.version': (4, 9, 4),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>,\n 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>,\n 'wsgi.input_terminated': True,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
/usr/local/django/djangotest/SpliceProtDB/db_interface/views.py
in render_response
import SpliceProtDB.db_interface.forms as forms
import SpliceProtDB.db_interface.tables as tables
import SpliceProtDB.views as views
def render_response(req, *args, **kwargs):
kwargs['context_instance'] = RequestContext(req)
return render_to_response(*args, **kwargs)...
def test2(request):
es = Experiment_detail.objects.raw(CROSS_TABLE_SQL, [ ", ".join(map(str, range(11000,12000)))])
# for e in es:
Variable | Value |
---|---|
args | ('comment_form.dj.html', {'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>, u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>}) |
req | "<WSGIRequest\npath:/comments,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X',\n u'CSRF_COOKIE_USED': True,\n 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'spliceosomedb.ucsc.edu',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/comments',\n 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '54.90.236.179',\n 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com',\n 'REMOTE_PORT': '37094',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'http',\n 'REQUEST_URI': '/comments',\n 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '128.114.144.41',\n 'SERVER_ADMIN': 'mjurica@ucsc.edu',\n 'SERVER_NAME': 'spliceosomedb.ucsc.edu',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '',\n 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7',\n 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU',\n 'apache.version': (2, 4, 37),\n 'mod_wsgi.application_group': '',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc',\n 'mod_wsgi.daemon_connects': '1',\n 'mod_wsgi.daemon_restarts': '0',\n 'mod_wsgi.daemon_start': '1711688456967776',\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': '80',\n 'mod_wsgi.path_info': '/comments',\n 'mod_wsgi.process_group': 'splicedb-test',\n 'mod_wsgi.queue_start': '1711688456967638',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU',\n 'mod_wsgi.request_start': '1711688456965796',\n 'mod_wsgi.script_name': '',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.script_start': '1711688456968002',\n 'mod_wsgi.thread_id': 3,\n 'mod_wsgi.thread_requests': 566L,\n 'mod_wsgi.total_requests': 2205L,\n 'mod_wsgi.version': (4, 9, 4),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>,\n 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>,\n 'wsgi.input_terminated': True,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
kwargs | {'context_instance': [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}]} |
/usr/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 | ('comment_form.dj.html', {'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>, u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>}) |
kwargs | {'context_instance': [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}]} |
/usr/lib/python2.7/site-packages/django/template/loader.py
in render_to_string
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:
return t.render(context_instance)...
finally:
context_instance.pop()
def select_template(template_name_list):
"Given a list of template names, returns the first that can be loaded."
if not template_name_list:
Variable | Value |
---|---|
template_name | 'comment_form.dj.html' |
t | <django.template.base.Template object at 0x7fc8c4190c50> |
dictionary | {'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>, u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>} |
context_instance | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
/usr/lib/python2.7/site-packages/django/template/base.py
in render
def _render(self, context):
return self.nodelist.render(context)
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
return self._render(context)...
finally:
context.render_context.pop()
def compile_string(template_string, origin):
"Compiles template_string into NodeList ready for rendering"
if settings.TEMPLATE_DEBUG:
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7fc8c4190c50> |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
/usr/lib/python2.7/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
return self._render(context)
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7fc8c4190c50> |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
/usr/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <ExtendsNode: extends "base.dj.html"> |
self | [<ExtendsNode: extends "base.dj.html">] |
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
/usr/lib/python2.7/site-packages/django/template/base.py
in render_node
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
return nodes
def render_node(self, node, context):
return node.render(context)...
class TextNode(Node):
def __init__(self, s):
self.s = s
def __repr__(self):
Variable | Value |
---|---|
node | <ExtendsNode: extends "base.dj.html"> |
self | [<ExtendsNode: extends "base.dj.html">] |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
/usr/lib/python2.7/site-packages/django/template/loader_tags.py
in render
blocks = dict([(n.name, n) for n in
compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
return compiled_parent._render(context)...
class BaseIncludeNode(Node):
def __init__(self, *args, **kwargs):
self.extra_context = kwargs.pop('extra_context', {})
self.isolated_context = kwargs.pop('isolated_context', False)
super(BaseIncludeNode, self).__init__(*args, **kwargs)
Variable | Value |
---|---|
node | <django.template.defaulttags.LoadNode object at 0x7fc8c411e990> |
blocks | {u'content': <Block Node: content. Contents: [<Text Node: ' <p>WELCOME to the'>]>, u'headspace': <Block Node: headspace. Contents: []>, u'ident': <Block Node: ident. Contents: [<Text Node: 'home'>]>, u'menu': <Block Node: menu. Contents: [<Text Node: ' <div id="menu"> '>, <django.template.defaulttags.URLNode object at 0x7fc8c6239ad0>, <Text Node: '" name="proteinsnav">comp'>, <django.template.defaulttags.URLNode object at 0x7fc8c6239490>, <Text Node: '" name="experimentsnav">m'>, <django.template.defaulttags.URLNode object at 0x7fc8c418ff90>, <Text Node: '" name="comparenav">compa'>, <django.template.defaulttags.URLNode object at 0x7fc8c418f390>, <Text Node: '" name="structuresnav">st'>, <django.template.defaulttags.URLNode object at 0x7fc8c418ffd0>, <Text Node: '" name="aboutnav">about<b'>]>, u'title': <Block Node: title. Contents: [<Text Node: 'Protein information'>]>} |
block_context | <django.template.loader_tags.BlockContext object at 0x7fc8c4190610> |
n | <Block Node: content. Contents: [<Text Node: ' <p>WELCOME to the'>]> |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
compiled_parent | <django.template.base.Template object at 0x7fc8c4190d90> |
self | <ExtendsNode: extends "base.dj.html"> |
/usr/lib/python2.7/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
return self._render(context)
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7fc8c4190d90> |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
/usr/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Block Node: content. Contents: [<Text Node: ' <p>WELCOME to the'>]> |
bit | u'\n </div>\n <div id="page">\n <div id="content">\n ' |
bits | [u'', u'\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n\n<html xmlns="http://www.w3.org/1999/xhtml">\n<head>\n <link rel="stylesheet" type="text/css" href="/media/css/site.css" />\n <link rel="icon"\n type="image/vnd.microsoft.icon"\n href="/media/images/favicon.ico">\n ', u'', u'\n <title>', u'\n Submit a Comment\n', u'</title>\n', u'\n<script type="text/javascript">\n\n var _gaq = _gaq || [];\n _gaq.push([\'_setAccount\', \'UA-25217697-1\']);\n _gaq.push([\'_trackPageview\']);\n\n (function() {\n var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;\n ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';\n var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);\n })();\n\n</script>\n', u'\n</head>\n\n<body id="', u'home', u'">\n <div id="header">\n <div id="logo">\n <h2><a href="', u'/', u'"> <img style="width: 300px; height: 120px;" alt="Spliceosome Database" src="/media/images/logo.png" /></a></h2>\n </div>\n\n <div id="headtext">\n <p>A source of information for the SPLICEOSOME:<br />\n The large ribonucleoprotein complex responsible for\n pre-mRNA splicing.<br />\n </div>\n', u'\n <div id="menu">\n <ul>\n <li title="search for spliceosome genes/proteins"><a id="proteinsnav" href="/proteins" name="proteinsnav">component<br />\n search</a></li>\n\n <li title="search the results of mass spectrometry analysis of various spliceosome-related complexes"><a id="experimentsnav" href="/experiments" name="experimentsnav">mass\n spec<br />\n experiments</a></li>\n\n <li title="compare the composition of various spliceosome-related complexes"><a id="comparenav" href="/compare" name="comparenav">compare <br /> \n complexes</a></li> \n\n<!-- comment out forum tab -->\n<!-- <li><a id="forumnav" href="/forum" name="forumnav"> -->\n<!-- forum<br /><br /></a></li> -->\n\n <li title="cryo-em structures of spliceosomes"><a id="structuresnav" href="/structures" name="structuresnav">structures<br />\n <br /></a></li>\n\n <li title="information about spliceosome database"><a id="aboutnav" href="/about" name="aboutnav">about<br />\n <br /></a></li>\n </ul>\n </div>\n', u'\n </div>\n <div id="page">\n <div id="content">\n '] |
self | [<django.template.defaulttags.LoadNode object at 0x7fc8c411e990>, <Text Node: ' <!DOCTYPE html PUBLIC "-'>, <Block Node: headspace. Contents: []>, <Text Node: ' <title>'>, <Block Node: title. Contents: [<Text Node: 'Protein information'>]>, <Text Node: '</title> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7fc8c5edbd50>, <Text Node: ' </head> <body id="'>, <Block Node: ident. Contents: [<Text Node: 'home'>]>, <Text Node: '"> <div id="header"> '>, <django.template.defaulttags.URLNode object at 0x7fc8c6239390>, <Text Node: '"> <img style="width: 300'>, <Block Node: menu. Contents: [<Text Node: ' <div id="menu"> '>, <django.template.defaulttags.URLNode object at 0x7fc8c6239ad0>, <Text Node: '" name="proteinsnav">comp'>, <django.template.defaulttags.URLNode object at 0x7fc8c6239490>, <Text Node: '" name="experimentsnav">m'>, <django.template.defaulttags.URLNode object at 0x7fc8c418ff90>, <Text Node: '" name="comparenav">compa'>, <django.template.defaulttags.URLNode object at 0x7fc8c418f390>, <Text Node: '" name="structuresnav">st'>, <django.template.defaulttags.URLNode object at 0x7fc8c418ffd0>, <Text Node: '" name="aboutnav">about<b'>]>, <Text Node: ' </div> <div id="page'>, <Block Node: content. Contents: [<Text Node: ' <p>WELCOME to the'>]>, <Text Node: ' <p></span></p> '>, <django.template.defaulttags.URLNode object at 0x7fc8c6239e90>, <Text Node: '">about</a> &n'>, <django.template.defaulttags.URLNode object at 0x7fc8c418fb90>, <Text Node: '">contact</a> '>, <django.template.defaulttags.URLNode object at 0x7fc8c418f350>, <Text Node: '">comments/report a probl'>, <django.template.defaulttags.URLNode object at 0x7fc8c418f2d0>, <Text Node: '">copyright/disclaimer</a'>] |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
/usr/lib/python2.7/site-packages/django/template/base.py
in render_node
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
return nodes
def render_node(self, node, context):
return node.render(context)...
class TextNode(Node):
def __init__(self, s):
self.s = s
def __repr__(self):
Variable | Value |
---|---|
node | <Block Node: content. Contents: [<Text Node: ' <p>WELCOME to the'>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7fc8c411e990>, <Text Node: ' <!DOCTYPE html PUBLIC "-'>, <Block Node: headspace. Contents: []>, <Text Node: ' <title>'>, <Block Node: title. Contents: [<Text Node: 'Protein information'>]>, <Text Node: '</title> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7fc8c5edbd50>, <Text Node: ' </head> <body id="'>, <Block Node: ident. Contents: [<Text Node: 'home'>]>, <Text Node: '"> <div id="header"> '>, <django.template.defaulttags.URLNode object at 0x7fc8c6239390>, <Text Node: '"> <img style="width: 300'>, <Block Node: menu. Contents: [<Text Node: ' <div id="menu"> '>, <django.template.defaulttags.URLNode object at 0x7fc8c6239ad0>, <Text Node: '" name="proteinsnav">comp'>, <django.template.defaulttags.URLNode object at 0x7fc8c6239490>, <Text Node: '" name="experimentsnav">m'>, <django.template.defaulttags.URLNode object at 0x7fc8c418ff90>, <Text Node: '" name="comparenav">compa'>, <django.template.defaulttags.URLNode object at 0x7fc8c418f390>, <Text Node: '" name="structuresnav">st'>, <django.template.defaulttags.URLNode object at 0x7fc8c418ffd0>, <Text Node: '" name="aboutnav">about<b'>]>, <Text Node: ' </div> <div id="page'>, <Block Node: content. Contents: [<Text Node: ' <p>WELCOME to the'>]>, <Text Node: ' <p></span></p> '>, <django.template.defaulttags.URLNode object at 0x7fc8c6239e90>, <Text Node: '">about</a> &n'>, <django.template.defaulttags.URLNode object at 0x7fc8c418fb90>, <Text Node: '">contact</a> '>, <django.template.defaulttags.URLNode object at 0x7fc8c418f350>, <Text Node: '">comments/report a probl'>, <django.template.defaulttags.URLNode object at 0x7fc8c418f2d0>, <Text Node: '">copyright/disclaimer</a'>] |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
/usr/lib/python2.7/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = BlockNode(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)...
if push is not None:
block_context.push(self.name, push)
context.pop()
return result
def super(self):
Variable | Value |
---|---|
push | <Block Node: content. Contents: [<Text Node: ' '>, <django.template.defaulttags.AutoEscapeControlNode object at 0x7fc8c411efd0>, <Text Node: ' '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7fc8c4190610> |
block | <Block Node: content. Contents: [<Text Node: ' '>, <django.template.defaulttags.AutoEscapeControlNode object at 0x7fc8c411efd0>, <Text Node: ' '>]> |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
self | <Block Node: content. Contents: [<Text Node: ' <p>WELCOME to the'>]> |
/usr/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <django.template.defaulttags.AutoEscapeControlNode object at 0x7fc8c411efd0> |
bit | u'\n' |
bits | [u'\n'] |
self | [<Text Node: ' '>, <django.template.defaulttags.AutoEscapeControlNode object at 0x7fc8c411efd0>, <Text Node: ' '>] |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
/usr/lib/python2.7/site-packages/django/template/base.py
in render_node
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
return nodes
def render_node(self, node, context):
return node.render(context)...
class TextNode(Node):
def __init__(self, s):
self.s = s
def __repr__(self):
Variable | Value |
---|---|
node | <django.template.defaulttags.AutoEscapeControlNode object at 0x7fc8c411efd0> |
self | [<Text Node: ' '>, <django.template.defaulttags.AutoEscapeControlNode object at 0x7fc8c411efd0>, <Text Node: ' '>] |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
/usr/lib/python2.7/site-packages/django/template/defaulttags.py
in render
"""Implements the actions of the autoescape tag."""
def __init__(self, setting, nodelist):
self.setting, self.nodelist = setting, nodelist
def render(self, context):
old_setting = context.autoescape
context.autoescape = self.setting
output = self.nodelist.render(context)...
context.autoescape = old_setting
if self.setting:
return mark_safe(output)
else:
return output
Variable | Value |
---|---|
self | <django.template.defaulttags.AutoEscapeControlNode object at 0x7fc8c411efd0> |
old_setting | True |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
/usr/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Variable Node: comment_form.as_table> |
bit | u'\n <table>' |
bits | [u'\n', u'', u'\n\n<form action="" method="post">', u"<input type='hidden' name='csrfmiddlewaretoken' value='Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X' />", u'\n <table>'] |
self | [<Text Node: ' '>, <IfNode>, <Text Node: ' <form action="" method='>, <django.template.defaulttags.CsrfTokenNode object at 0x7fc8c411e810>, <Text Node: ' <table>'>, <Variable Node: comment_form.as_table>, <Text Node: '</table> <input type='>] |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
/usr/lib/python2.7/site-packages/django/template/base.py
in render_node
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
return nodes
def render_node(self, node, context):
return node.render(context)...
class TextNode(Node):
def __init__(self, s):
self.s = s
def __repr__(self):
Variable | Value |
---|---|
node | <Variable Node: comment_form.as_table> |
self | [<Text Node: ' '>, <IfNode>, <Text Node: ' <form action="" method='>, <django.template.defaulttags.CsrfTokenNode object at 0x7fc8c411e810>, <Text Node: ' <table>'>, <Variable Node: comment_form.as_table>, <Text Node: '</table> <input type='>] |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
/usr/lib/python2.7/site-packages/django/template/base.py
in render
self.filter_expression = filter_expression
def __repr__(self):
return "<Variable Node: %s>" % self.filter_expression
def render(self, context):
try:
output = self.filter_expression.resolve(context)...
except UnicodeDecodeError:
# Unicode conversion can fail sometimes for reasons out of our
# control (e.g. exception rendering). In that case, we fail
# quietly.
return ''
return _render_value_in_context(output, context)
Variable | Value |
---|---|
self | <Variable Node: comment_form.as_table> |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
/usr/lib/python2.7/site-packages/django/template/base.py
in resolve
self.filters = filters
self.var = var_obj
def resolve(self, context, ignore_failures=False):
if isinstance(self.var, Variable):
try:
obj = self.var.resolve(context)...
except VariableDoesNotExist:
if ignore_failures:
obj = None
else:
if settings.TEMPLATE_STRING_IF_INVALID:
global invalid_var_format_string
Variable | Value |
---|---|
self | <django.template.base.FilterExpression object at 0x7fc8c411e150> |
ignore_failures | False |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
/usr/lib/python2.7/site-packages/django/template/base.py
in resolve
var)
self.lookups = tuple(var.split(VARIABLE_ATTRIBUTE_SEPARATOR))
def resolve(self, context):
"""Resolve this variable against a given context."""
if self.lookups is not None:
# We're dealing with a variable that needs to be resolved
value = self._resolve_lookup(context)...
else:
# We're dealing with a literal, so it's already been "resolved"
value = self.literal
if self.translate:
if self.message_context:
return pgettext_lazy(self.message_context, value)
Variable | Value |
---|---|
self | <Variable: u'comment_form.as_table'> |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
/usr/lib/python2.7/site-packages/django/template/base.py
in _resolve_lookup
if callable(current):
if getattr(current, 'do_not_call_in_templates', False):
pass
elif getattr(current, 'alters_data', False):
current = settings.TEMPLATE_STRING_IF_INVALID
else:
try: # method call (assuming no args required)
current = current()...
except TypeError: # arguments *were* required
# GOTCHA: This will also catch any TypeError
# raised in the function itself.
current = settings.TEMPLATE_STRING_IF_INVALID # invalid method call
except Exception as e:
if getattr(e, 'silent_variable_failure', False):
Variable | Value |
---|---|
current | <bound method submit_comment_form.as_table of <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>> |
bit | u'as_table' |
e | TemplateDoesNotExist('captcha/widget.html',) |
self | <Variable: u'comment_form.as_table'> |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4190090>}, {u'STATIC_URL': '/media/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fc8c4190910>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7fc8c4142650>}, {}, {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': 'http://128.114.97.132.ucsc.edu/media/'}, {u'request': <WSGIRequest path:/comments, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'CONTEXT_PREFIX': '', u'CSRF_COOKIE': u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X', u'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/usr/local/django/djangotest/wwwdj', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'spliceosomedb.ucsc.edu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/comments', 'PATH_TRANSLATED': '/usr/local/django/djangotest/wwwdj/django.wsgi/comments', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.90.236.179', 'REMOTE_HOST': 'ec2-54-90-236-179.compute-1.amazonaws.com', 'REMOTE_PORT': '37094', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'http', 'REQUEST_URI': '/comments', 'SCRIPT_FILENAME': '/usr/local/django/djangotest/wwwdj/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '128.114.144.41', 'SERVER_ADMIN': 'mjurica@ucsc.edu', 'SERVER_NAME': 'spliceosomedb.ucsc.edu', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7', 'UNIQUE_ID': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'apache.version': (2, 4, 37), 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.connection_id': 'Fo9xhp3F0Fc', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1711688456967776', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.path_info': '/comments', 'mod_wsgi.process_group': 'splicedb-test', 'mod_wsgi.queue_start': '1711688456967638', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.request_id': 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU', 'mod_wsgi.request_start': '1711688456965796', 'mod_wsgi.script_name': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.script_start': '1711688456968002', 'mod_wsgi.thread_id': 3, 'mod_wsgi.thread_requests': 566L, 'mod_wsgi.total_requests': 2205L, 'mod_wsgi.version': (4, 9, 4), 'wsgi.errors': <mod_wsgi.Log object at 0x7fc8c771d8a0>, 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>, 'wsgi.input': <mod_wsgi.Input object at 0x7fc8c4d907a0>, 'wsgi.input_terminated': True, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fc8c40ba810>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fc8c4142f90>, 'comment_form': <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850>}] |
/usr/lib/python2.7/site-packages/django/forms/forms.py
in as_table
def as_table(self):
"Returns this form rendered as HTML <tr>s -- excluding the <table></table>."
return self._html_output(
normal_row = '<tr%(html_class_attr)s><th>%(label)s</th><td>%(errors)s%(field)s%(help_text)s</td></tr>',
error_row = '<tr><td colspan="2">%s</td></tr>',
row_ender = '</td></tr>',
help_text_html = '<br /><span class="helptext">%s</span>',
errors_on_separate_row = False)...
def as_ul(self):
"Returns this form rendered as HTML <li>s -- excluding the <ul></ul>."
return self._html_output(
normal_row = '<li%(html_class_attr)s>%(errors)s%(label)s %(field)s%(help_text)s</li>',
error_row = '<li>%s</li>',
Variable | Value |
---|---|
self | <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850> |
/usr/lib/python2.7/site-packages/django/forms/forms.py
in _html_output
help_text = help_text_html % force_text(field.help_text)
else:
help_text = ''
output.append(normal_row % {
'errors': force_text(bf_errors),
'label': force_text(label),
'field': six.text_type(bf),...
'help_text': help_text,
'html_class_attr': html_class_attr
})
if top_errors:
output.insert(0, error_row % force_text(top_errors))
Variable | Value |
---|---|
bf | <django.forms.forms.BoundField object at 0x7fc8c418f850> |
name | 'captcha' |
normal_row | u'<tr%(html_class_attr)s><th>%(label)s</th><td>%(errors)s%(field)s%(help_text)s</td></tr>' |
error_row | u'<tr><td colspan="2">%s</td></tr>' |
label | u'<label for="id_captcha">Captcha:</label>' |
field | <captcha.fields.ReCaptchaField object at 0x7fc8c4142a50> |
row_ender | u'</td></tr>' |
bf_errors | [] |
errors_on_separate_row | False |
hidden_fields | [] |
css_classes | u'' |
help_text | u'' |
output | [u'<tr><th><label for="id_email">E-mail address (optional):</label></th><td><input id="id_email" name="email" type="text" /></td></tr>', u'<tr><th><label for="id_comment">Comment:</label></th><td><textarea cols="40" id="id_comment" name="comment" rows="10">\r\n</textarea></td></tr>'] |
html_class_attr | u'' |
self | <SpliceProtDB.db_interface.forms.submit_comment_form object at 0x7fc8c4142850> |
top_errors | [] |
help_text_html | u'<br /><span class="helptext">%s</span>' |
/usr/lib/python2.7/site-packages/django/forms/forms.py
in __str__
self.label = self.field.label
self.help_text = field.help_text or ''
def __str__(self):
"""Renders this field as an HTML widget."""
if self.field.show_hidden_initial:
return self.as_widget() + self.as_hidden(only_initial=True)
return self.as_widget()...
def __iter__(self):
"""
Yields rendered strings that comprise all widgets in this BoundField.
This really is only useful for RadioSelect widgets, so that you can
Variable | Value |
---|---|
self | <django.forms.forms.BoundField object at 0x7fc8c418f850> |
/usr/lib/python2.7/site-packages/django/forms/forms.py
in as_widget
else:
attrs['id'] = self.html_initial_id
if not only_initial:
name = self.html_name
else:
name = self.html_initial_name
return widget.render(name, self.value(), attrs=attrs)...
def as_text(self, attrs=None, **kwargs):
"""
Returns a string of HTML for representing this as an <input type="text">.
"""
return self.as_widget(TextInput(), attrs, **kwargs)
Variable | Value |
---|---|
auto_id | u'id_captcha' |
widget | <captcha.widgets.ReCaptcha object at 0x7fc8c4142ed0> |
name | 'captcha' |
self | <django.forms.forms.BoundField object at 0x7fc8c418f850> |
only_initial | False |
attrs | {u'id': u'id_captcha'} |
/usr/lib/python2.7/site-packages/captcha/widgets.py
in render
settings, 'RECAPTCHA_USE_SSL', False)
self.js_attrs = attrs
super(ReCaptcha, self).__init__(*args, **kwargs)
def render(self, name, value, attrs=None):
return mark_safe(u'%s' % client.displayhtml(
self.public_key,
self.js_attrs, use_ssl=self.use_ssl))...
def value_from_datadict(self, data, files, name):
return [
data.get(self.recaptcha_challenge_name, None),
data.get(self.recaptcha_response_name, None)
]
Variable | Value |
---|---|
self | <captcha.widgets.ReCaptcha object at 0x7fc8c4142ed0> |
attrs | {u'id': u'id_captcha'} |
value | None |
name | 'captcha' |
/usr/lib/python2.7/site-packages/captcha/client.py
in displayhtml
return render_to_string(
WIDGET_TEMPLATE,
{'api_server': server,
'public_key': public_key,
'error_param': error_param,
'lang': attrs['lang'],
'options': mark_safe(json.dumps(attrs, indent=2))...
})
def submit(recaptcha_challenge_field,
recaptcha_response_field,
private_key,
Variable | Value |
---|---|
public_key | '6LcSRMoSAAAAAEQw23jbJ8bjUHUvmfQAwUB9aix4' |
error_param | '' |
server | '//www.google.com/recaptcha/api' |
attrs | {'lang': 'en'} |
error | None |
use_ssl | False |
/usr/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 | 'captcha/widget.html' |
context_instance | None |
dictionary | {'api_server': '//www.google.com/recaptcha/api', 'error_param': '', 'lang': 'en', 'options': '{\n "lang": "en"\n}', 'public_key': '6LcSRMoSAAAAAEQw23jbJ8bjUHUvmfQAwUB9aix4'} |
/usr/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 | 'captcha/widget.html' |
/usr/lib/python2.7/site-packages/django/template/loader.py
in find_template
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):
"""
Returns a compiled Template object for the given template name,
handling template inheritance recursively.
"""
Variable | Value |
---|---|
dirs | None |
name | 'captcha/widget.html' |
loader | <django.template.loaders.app_directories.Loader object at 0x7fc8c76eca50> |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
mod_wsgi.listener_port | '80' |
CONTEXT_DOCUMENT_ROOT | '/usr/local/django/djangotest/wwwdj' |
SERVER_SOFTWARE | 'Apache/2.4.37 (rocky) mod_wsgi/4.9.4 Python/2.7' |
SCRIPT_NAME | u'' |
mod_wsgi.enable_sendfile | '0' |
mod_wsgi.handler_script | '' |
SERVER_SIGNATURE | '' |
REQUEST_METHOD | 'GET' |
PATH_INFO | u'/comments' |
SERVER_PROTOCOL | 'HTTP/1.1' |
QUERY_STRING | '' |
HTTP_USER_AGENT | 'claudebot' |
SERVER_NAME | 'spliceosomedb.ucsc.edu' |
REMOTE_ADDR | '54.90.236.179' |
mod_wsgi.queue_start | '1711688456967638' |
mod_wsgi.request_handler | 'wsgi-script' |
apache.version | (2, 4, 37) |
mod_wsgi.thread_id | 3 |
wsgi.url_scheme | 'http' |
PATH_TRANSLATED | '/usr/local/django/djangotest/wwwdj/django.wsgi/comments' |
SERVER_PORT | '80' |
mod_wsgi.total_requests | 2205L |
wsgi.multiprocess | True |
SERVER_ADDR | '128.114.144.41' |
DOCUMENT_ROOT | '/usr/local/django/djangotest/wwwdj' |
mod_wsgi.process_group | 'splicedb-test' |
mod_wsgi.thread_requests | 566L |
mod_wsgi.daemon_connects | '1' |
mod_wsgi.request_id | 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU' |
SCRIPT_FILENAME | '/usr/local/django/djangotest/wwwdj/django.wsgi' |
SERVER_ADMIN | 'mjurica@ucsc.edu' |
mod_wsgi.ignore_activity | '0' |
wsgi.input | <mod_wsgi.Input object at 0x7fc8c4d907a0> |
HTTP_HOST | 'spliceosomedb.ucsc.edu' |
CONTEXT_PREFIX | '' |
wsgi.multithread | True |
mod_wsgi.callable_object | 'application' |
mod_wsgi.daemon_restarts | '0' |
REQUEST_URI | '/comments' |
HTTP_ACCEPT | '*/*' |
mod_wsgi.path_info | '/comments' |
mod_wsgi.daemon_start | '1711688456967776' |
wsgi.file_wrapper | '' |
wsgi.version | (1, 0) |
GATEWAY_INTERFACE | 'CGI/1.1' |
wsgi.run_once | False |
CSRF_COOKIE | u'Umspk1lYTU8KntFxu1wXU0J4Bs3vpq0X' |
mod_wsgi.script_name | '' |
REMOTE_PORT | '37094' |
mod_wsgi.listener_host | '' |
REQUEST_SCHEME | 'http' |
mod_wsgi.version | (4, 9, 4) |
CSRF_COOKIE_USED | True |
wsgi.input_terminated | True |
mod_wsgi.script_start | '1711688456968002' |
mod_wsgi.application_group | '' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.request_start | '1711688456965796' |
REMOTE_HOST | 'ec2-54-90-236-179.compute-1.amazonaws.com' |
wsgi.errors | <mod_wsgi.Log object at 0x7fc8c771d8a0> |
UNIQUE_ID | 'ZgZLCCpPUqZptQ3IJ4p9YgAAANU' |
mod_wsgi.connection_id | 'Fo9xhp3F0Fc' |
SpliceProtDB.settings
Setting | Value |
---|---|
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'en-us' |
ROOT_URLCONF | 'SpliceProtDB.urls' |
MANAGERS | (('melissa', 'mjurica@ucsc.edu'), ('alison', 'alindbe@ucsc.edu')) |
DEFAULT_CHARSET | 'utf-8' |
STATIC_ROOT | '' |
ALLOWED_HOSTS | [] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
RECAPTCHA_PRIVATE_KEY | u'********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
FILE_UPLOAD_PERMISSIONS | None |
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': 'jurica_development', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'America/Los_Angeles', 'USER': 'django'}} |
RECAPTCHA_PUBLIC_KEY | u'********************' |
SERVER_EMAIL | 'alindbe@ucsc.edu' |
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.memcached.PyLibMCCache', 'LOCATION': '127.0.0.1:11211'}} |
SESSION_COOKIE_PATH | '/' |
MIDDLEWARE_CLASSES | ('django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'SpliceProtDB.middleware.DeleteSessionOnLogoutMiddleware') |
USE_I18N | False |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
DEFAULT_INDEX_TABLESPACE | '' |
TRANSACTIONS_MANAGED | False |
LOGGING_CONFIG | 'django.utils.log.dictConfig' |
SEND_BROKEN_LINK_EMAILS | False |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
WSGI_APPLICATION | None |
TEMPLATE_DEBUG | False |
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 |
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.admindocs', 'SpliceProtDB.db_interface', 'django_tables2', 'django.contrib.staticfiles', 'django.contrib.humanize') |
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 | ('/usr/local/django/djangotest/SpliceProtDB/static',) |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
SESSION_COOKIE_HTTPONLY | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
MONTH_DAY_FORMAT | 'F j' |
LOGIN_URL | '/accounts/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 |
NUMBER_GROUPING | 0 |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
PROJECT_ROOT | '/usr/local/django/djangotest/SpliceProtDB' |
DECIMAL_SEPARATOR | '.' |
IGNORABLE_404_URLS | () |
LOCALE_PATHS | () |
TEMPLATE_STRING_IF_INVALID | '' |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
FIXTURE_DIRS | () |
EMAIL_HOST | 'localhost' |
DATE_FORMAT | 'N j, Y' |
MEDIA_ROOT | '/usr/local/django/djangotest/wwwdj/media/' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | (('melissa', 'mjurica@ucsc.edu'), ('alison', 'alindbe@ucsc.edu')) |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'donotreply@128.114.97.132.ucsc.edu' |
MEDIA_URL | 'http://128.114.97.132.ucsc.edu/media/' |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | ('/usr/local/django/djangotest/SpliceProtDB/templates',) |
SITE_ID | 1 |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
LOGGING | {} |
SHORT_DATE_FORMAT | 'm/d/Y' |
PROJECT_NAME | 'SpliceProtDB' |
TEST_RUNNER | 'django.test.simple.DjangoTestSuiteRunner' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
TIME_ZONE | 'America/Los_Angeles' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
DEFAULT_TABLESPACE | '' |
TEMPLATE_CONTEXT_PROCESSORS | ('django.core.context_processors.static', 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.request', 'django.contrib.messages.context_processors.messages') |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'SpliceProtDB.settings' |
USE_ETAGS | False |
LANGUAGES_BIDI | ('he', 'ar', 'fa') |
FILE_UPLOAD_TEMP_DIR | None |
INTERNAL_IPS | () |
STATIC_URL | '/media/' |
EMAIL_PORT | 25 |
USE_TZ | False |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
PASSWORD_HASHERS | u'********************' |
ABSOLUTE_URL_OVERRIDES | {} |
CACHE_MIDDLEWARE_SECONDS | 600 |
DEBUG_TOOLBAR_CONFIG | {'INTERCEPT_REDIRECTS': False} |
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 | '' |
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.