build_attrs() got an unexpected keyword argument 'type'
Request Method: | GET |
---|---|
Request URL: | https://telemaco.clarin-d.uni-saarland.de/hub/advancedsearch/ |
Django Version: | 1.8.7 |
Exception Type: | TypeError |
Exception Value: | build_attrs() got an unexpected keyword argument 'type' |
Exception Location: | /usr/lib/python2.7/dist-packages/django/forms/widgets.py in render, line 253 |
Python Executable: | /usr/bin/python |
Python Version: | 2.7.12 |
Python Path: | ['/var/www/html/hub', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages'] |
Server time: | Tue, 19 Mar 2024 09:50:17 +0100 |
In template /usr/local/hub/templates/advancedsearch.html
, error at line 9
1 | {% extends 'base.html' %} |
---|---|
2 | {% block title %}TeLeMaCo: Advanced search{% endblock %} |
3 | {% block headline %}Advanced search{% endblock %} |
4 | {% block content %} |
5 | <form action="/hub/search/advanced/" method="POST">{% csrf_token %} |
6 | <table> |
7 | {{ form.media.css }} |
8 | {{ form.media.js }} |
9 | {{ form.as_table }} |
10 | </table> |
11 | <input type="submit" value="Search"> |
12 | </form> |
13 | {% endblock %} |
14 |
/usr/lib/python2.7/dist-packages/django/core/handlers/base.py
in get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_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 | TypeError("build_attrs() got an unexpected keyword argument 'type'",) |
callback_args | () |
resolver_match | ResolverMatch(func=materials.views.advancedsearch, args=(), kwargs={}, url_name=None, app_name=None, namespaces=[]) |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7ff3bb25bd90>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7ff3bb7977d0> |
request | "<WSGIRequest\npath:/hub/advancedsearch/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/var/www/html',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'R2dSUBK6OZLr5JKcwfA1wfLKlEs6icjH',\n u'CSRF_COOKIE_USED': True,\n 'DOCUMENT_ROOT': '/var/www/html',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'telemaco.clarin-d.uni-saarland.de',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/advancedsearch/',\n 'PATH_TRANSLATED': '/var/www/html/advancedsearch/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '54.226.25.246',\n 'REMOTE_PORT': '48048',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'https',\n 'REQUEST_URI': '/hub/advancedsearch/',\n 'SCRIPT_FILENAME': '/var/www/html/hub/hub/wsgi.py',\n 'SCRIPT_NAME': u'/hub',\n 'SERVER_ADDR': '134.96.53.199',\n 'SERVER_ADMIN': 'j.knappen@mx.uni-saarland.de',\n 'SERVER_NAME': 'telemaco.clarin-d.uni-saarland.de',\n 'SERVER_PORT': '443',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '<address>Apache/2.4.18 (Ubuntu) Server at telemaco.clarin-d.uni-saarland.de Port 443</address>\\n',\n 'SERVER_SOFTWARE': 'Apache/2.4.18 (Ubuntu)',\n 'SSL_TLS_SNI': 'telemaco.clarin-d.uni-saarland.de',\n 'apache.version': (2, 4, 18),\n 'mod_wsgi.application_group': 'telemaco.clarin-d.uni-saarland.de|/hub',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.input_chunked': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '443',\n 'mod_wsgi.process_group': '',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.request_start': '1710838217360132',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.script_start': '1710838217360757',\n 'mod_wsgi.version': (4, 3, 0),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7ff3bb0b5c48>,\n 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7ff3bb2614f0>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'https',\n 'wsgi.version': (1, 0)}>" |
callback | <function advancedsearch at 0x7ff3bb0d3398> |
wrapped_callback | <function advancedsearch at 0x7ff3bb0d3398> |
resolver | <RegexURLResolver 'hub.urls' (None:None) ^/> |
callback_kwargs | {} |
response | None |
urlconf | 'hub.urls' |
/var/www/html/hub/materials/views.py
in advancedsearch
return HttpResponseRedirect('/hub/search/advanced/')
else:
context = {'form':form}
return render(request, 'advancedsearch.html', context)
else:
form = AdvSearchForm()
context = {'form': form}
return render(request, 'advancedsearch.html', context)...
def advancedresult(request):
"""Presents the results of an advanced search"""
m = Material()
qs = Material.objects.distinct()
authors = request.POST['author'].strip()
Variable | Value |
---|---|
request | "<WSGIRequest\npath:/hub/advancedsearch/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/var/www/html',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'R2dSUBK6OZLr5JKcwfA1wfLKlEs6icjH',\n u'CSRF_COOKIE_USED': True,\n 'DOCUMENT_ROOT': '/var/www/html',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'telemaco.clarin-d.uni-saarland.de',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/advancedsearch/',\n 'PATH_TRANSLATED': '/var/www/html/advancedsearch/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '54.226.25.246',\n 'REMOTE_PORT': '48048',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'https',\n 'REQUEST_URI': '/hub/advancedsearch/',\n 'SCRIPT_FILENAME': '/var/www/html/hub/hub/wsgi.py',\n 'SCRIPT_NAME': u'/hub',\n 'SERVER_ADDR': '134.96.53.199',\n 'SERVER_ADMIN': 'j.knappen@mx.uni-saarland.de',\n 'SERVER_NAME': 'telemaco.clarin-d.uni-saarland.de',\n 'SERVER_PORT': '443',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '<address>Apache/2.4.18 (Ubuntu) Server at telemaco.clarin-d.uni-saarland.de Port 443</address>\\n',\n 'SERVER_SOFTWARE': 'Apache/2.4.18 (Ubuntu)',\n 'SSL_TLS_SNI': 'telemaco.clarin-d.uni-saarland.de',\n 'apache.version': (2, 4, 18),\n 'mod_wsgi.application_group': 'telemaco.clarin-d.uni-saarland.de|/hub',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.input_chunked': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '443',\n 'mod_wsgi.process_group': '',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.request_start': '1710838217360132',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.script_start': '1710838217360757',\n 'mod_wsgi.version': (4, 3, 0),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7ff3bb0b5c48>,\n 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7ff3bb2614f0>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'https',\n 'wsgi.version': (1, 0)}>" |
context | {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>} |
form | <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)> |
/usr/lib/python2.7/dist-packages/django/shortcuts.py
in render
if (context_instance is _context_instance_undefined
and current_app is _current_app_undefined
and dirs is _dirs_undefined
and dictionary is _dictionary_undefined):
# No deprecated arguments were passed - use the new code path
# In Django 1.10, request should become a positional argument.
content = loader.render_to_string(
template_name, context, request=request, using=using)...
else:
# Some deprecated arguments were passed - use the legacy code path
if context_instance is not _context_instance_undefined:
if current_app is not _current_app_undefined:
raise ValueError('If you provide a context_instance you must '
Variable | Value |
---|---|
dirs | <object object at 0x7ff3bb8ad6a0> |
status | None |
content_type | None |
dictionary | <object object at 0x7ff3bb8ad690> |
template_name | 'advancedsearch.html' |
current_app | <object object at 0x7ff3bb8ad180> |
request | "<WSGIRequest\npath:/hub/advancedsearch/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/var/www/html',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'R2dSUBK6OZLr5JKcwfA1wfLKlEs6icjH',\n u'CSRF_COOKIE_USED': True,\n 'DOCUMENT_ROOT': '/var/www/html',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'telemaco.clarin-d.uni-saarland.de',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/advancedsearch/',\n 'PATH_TRANSLATED': '/var/www/html/advancedsearch/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '54.226.25.246',\n 'REMOTE_PORT': '48048',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'https',\n 'REQUEST_URI': '/hub/advancedsearch/',\n 'SCRIPT_FILENAME': '/var/www/html/hub/hub/wsgi.py',\n 'SCRIPT_NAME': u'/hub',\n 'SERVER_ADDR': '134.96.53.199',\n 'SERVER_ADMIN': 'j.knappen@mx.uni-saarland.de',\n 'SERVER_NAME': 'telemaco.clarin-d.uni-saarland.de',\n 'SERVER_PORT': '443',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '<address>Apache/2.4.18 (Ubuntu) Server at telemaco.clarin-d.uni-saarland.de Port 443</address>\\n',\n 'SERVER_SOFTWARE': 'Apache/2.4.18 (Ubuntu)',\n 'SSL_TLS_SNI': 'telemaco.clarin-d.uni-saarland.de',\n 'apache.version': (2, 4, 18),\n 'mod_wsgi.application_group': 'telemaco.clarin-d.uni-saarland.de|/hub',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.input_chunked': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '443',\n 'mod_wsgi.process_group': '',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.request_start': '1710838217360132',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.script_start': '1710838217360757',\n 'mod_wsgi.version': (4, 3, 0),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7ff3bb0b5c48>,\n 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7ff3bb2614f0>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'https',\n 'wsgi.version': (1, 0)}>" |
context_instance | <object object at 0x7ff3bb8ad680> |
context | {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>} |
using | None |
/usr/lib/python2.7/dist-packages/django/template/loader.py
in render_to_string
and dirs is _dirs_undefined
and dictionary is _dictionary_undefined):
# No deprecated arguments were passed - use the new code path
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)...
else:
# Some deprecated arguments were passed - use the legacy code path
for engine in _engine_list(using):
try:
# This is required for deprecating properly arguments specific
Variable | Value |
---|---|
dirs | <object object at 0x7ff3bb8ad6a0> |
template | <django.template.backends.django.Template object at 0x7ff3bb1c3390> |
dictionary | <object object at 0x7ff3bb8ad690> |
template_name | 'advancedsearch.html' |
request | "<WSGIRequest\npath:/hub/advancedsearch/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/var/www/html',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'R2dSUBK6OZLr5JKcwfA1wfLKlEs6icjH',\n u'CSRF_COOKIE_USED': True,\n 'DOCUMENT_ROOT': '/var/www/html',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'telemaco.clarin-d.uni-saarland.de',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/advancedsearch/',\n 'PATH_TRANSLATED': '/var/www/html/advancedsearch/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '54.226.25.246',\n 'REMOTE_PORT': '48048',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'https',\n 'REQUEST_URI': '/hub/advancedsearch/',\n 'SCRIPT_FILENAME': '/var/www/html/hub/hub/wsgi.py',\n 'SCRIPT_NAME': u'/hub',\n 'SERVER_ADDR': '134.96.53.199',\n 'SERVER_ADMIN': 'j.knappen@mx.uni-saarland.de',\n 'SERVER_NAME': 'telemaco.clarin-d.uni-saarland.de',\n 'SERVER_PORT': '443',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '<address>Apache/2.4.18 (Ubuntu) Server at telemaco.clarin-d.uni-saarland.de Port 443</address>\\n',\n 'SERVER_SOFTWARE': 'Apache/2.4.18 (Ubuntu)',\n 'SSL_TLS_SNI': 'telemaco.clarin-d.uni-saarland.de',\n 'apache.version': (2, 4, 18),\n 'mod_wsgi.application_group': 'telemaco.clarin-d.uni-saarland.de|/hub',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.input_chunked': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '443',\n 'mod_wsgi.process_group': '',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.request_start': '1710838217360132',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.script_start': '1710838217360757',\n 'mod_wsgi.version': (4, 3, 0),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7ff3bb0b5c48>,\n 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7ff3bb2614f0>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'https',\n 'wsgi.version': (1, 0)}>" |
context_instance | <object object at 0x7ff3bb8ad680> |
context | {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>} |
using | None |
/usr/lib/python2.7/dist-packages/django/template/backends/django.py
in render
warnings.warn(
"render() must be called with a dict, not a Context.",
RemovedInDjango110Warning, stacklevel=2)
else:
context = make_context(context, request)
return self.template.render(context)...
Variable | Value |
---|---|
self | <django.template.backends.django.Template object at 0x7ff3bb1c3390> |
request | "<WSGIRequest\npath:/hub/advancedsearch/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/var/www/html',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'R2dSUBK6OZLr5JKcwfA1wfLKlEs6icjH',\n u'CSRF_COOKIE_USED': True,\n 'DOCUMENT_ROOT': '/var/www/html',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'telemaco.clarin-d.uni-saarland.de',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/advancedsearch/',\n 'PATH_TRANSLATED': '/var/www/html/advancedsearch/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '54.226.25.246',\n 'REMOTE_PORT': '48048',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'https',\n 'REQUEST_URI': '/hub/advancedsearch/',\n 'SCRIPT_FILENAME': '/var/www/html/hub/hub/wsgi.py',\n 'SCRIPT_NAME': u'/hub',\n 'SERVER_ADDR': '134.96.53.199',\n 'SERVER_ADMIN': 'j.knappen@mx.uni-saarland.de',\n 'SERVER_NAME': 'telemaco.clarin-d.uni-saarland.de',\n 'SERVER_PORT': '443',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '<address>Apache/2.4.18 (Ubuntu) Server at telemaco.clarin-d.uni-saarland.de Port 443</address>\\n',\n 'SERVER_SOFTWARE': 'Apache/2.4.18 (Ubuntu)',\n 'SSL_TLS_SNI': 'telemaco.clarin-d.uni-saarland.de',\n 'apache.version': (2, 4, 18),\n 'mod_wsgi.application_group': 'telemaco.clarin-d.uni-saarland.de|/hub',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.input_chunked': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '443',\n 'mod_wsgi.process_group': '',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.request_start': '1710838217360132',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.script_start': '1710838217360757',\n 'mod_wsgi.version': (4, 3, 0),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7ff3bb0b5c48>,\n 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7ff3bb2614f0>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'https',\n 'wsgi.version': (1, 0)}>" |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>}] |
/usr/lib/python2.7/dist-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
if context.template is None:
with context.bind_template(self):
return self._render(context)...
else:
return self._render(context)
finally:
context.render_context.pop()
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7ff3bb1b7ed0> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>}] |
/usr/lib/python2.7/dist-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:
if context.template is None:
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7ff3bb1b7ed0> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>}] |
/usr/lib/python2.7/dist-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.html'> |
self | [<ExtendsNode: extends 'base.html'>] |
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>}] |
/usr/lib/python2.7/dist-packages/django/template/debug.py
in render_node
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <ExtendsNode: extends 'base.html'> |
self | [<ExtendsNode: extends 'base.html'>] |
e | TypeError("build_attrs() got an unexpected keyword argument 'type'",) |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>}] |
/usr/lib/python2.7/dist-packages/django/template/loader_tags.py
in render
blocks = {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 IncludeNode(Node):
def __init__(self, template, *args, **kwargs):
self.template = template
self.extra_context = kwargs.pop('extra_context', {})
Variable | Value |
---|---|
node | <Block Node: title. Contents: [<Text Node: 'TeLeMaCo'>]> |
blocks | {u'content': <Block Node: content. Contents: [<Text Node: 'Some dummy content'>]>, u'footline': <Block Node: footline. Contents: [<Text Node: ' <div> <a href'>]>, u'headline': <Block Node: headline. Contents: [<Text Node: 'A dummy headline'>]>, u'tabline': <Block Node: tabline. Contents: [<Text Node: ' <div class="navi"> '>, <IfNode>, <Text Node: ' <a href="/hub/advanc'>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff3bb1a2290>, <Text Node: '<input type="text" '>, <IfNode>, <Text Node: ' '>]>, u'title': <Block Node: title. Contents: [<Text Node: 'TeLeMaCo'>]>} |
block_context | <django.template.loader_tags.BlockContext object at 0x7ff3bb1a2810> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>}] |
compiled_parent | <django.template.base.Template object at 0x7ff3bb1a2910> |
self | <ExtendsNode: extends 'base.html'> |
/usr/lib/python2.7/dist-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:
if context.template is None:
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7ff3bb1a2910> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>}] |
/usr/lib/python2.7/dist-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: 'Some dummy content'>]> |
bit | u'</h1>\n <div>' |
bits | [u'<!DOCTYPE HTML>\n<html>\n<meta http-equiv="Content-type" content="text/html;charset=UTF-8">\n <title>', u'TeLeMaCo: Advanced search', u'\n </title>\n <style type="text/css">\n <!--\n h1\n { font-family: sans-serif;\n color: #054172;\n }\n h2\n { font-family: sans-serif;\n color: #054172;\n }\n h3\n { font-family: sans-serif;\n }\n h4\n { font-family: sans-serif;\n }\n\n input[type="submit"]\n { font-family: sans-serif;\n background-color: #054172;\n color: #f3f6f9;\n }\n .navi\n { \n background-color: #054172;\n color: #f3f6f9;\n line-height: 2em;\n }\n .navi>:link\n { \n font-family: sans-serif;\n color: #f3f6f9;\n }\n .navi>:visited\n {\n font-family: sans-serif;\n color: #e2e7ee;\n }\n .navi2\n {\n background-color: #f4d294;\n color: black;\n }\n .navi2>:link\n {\n font-family: sans-serif;\n color: black;\n line-height: 2em;\n }\n .navi2>:visited\n {\n font-family: sans-serif;\n color: #054172;\n }\n .description { background-color: #f3f6f9; }\n .titelei\n {\n background-color: #f3f6f9;\n white-space: nowrap;\n }\n .error\n {\n color: #7f1418;\n font-style: italic;\n }\n .feedback {background-color: #a6b9cc;}\n -->\n </style>\n<script type="text/javascript" src="/ajax/js/jquery.js"></script>\n<script type="text/javascript" src="/ajax/js/jquery-ui.js"></script>\n<link rel="stylesheet" href="/ajax/css/ui-lightness/jquery-ui.css" type="text/css">\n<!-- Piwik -->\n<script type="text/javascript">\n var _paq = _paq || [];\n _paq.push([\'trackPageView\']);\n _paq.push([\'enableLinkTracking\']);\n (function() {\n var u="//telemaco.clarin-d.uni-saarland.de/piwik/";\n _paq.push([\'setTrackerUrl\', u+\'piwik.php\']);\n _paq.push([\'setSiteId\', 1]);\n var d=document, g=d.createElement(\'script\'), s=d.getElementsByTagName(\'script\')[0];\n g.type=\'text/javascript\'; g.async=true; g.defer=true; g.src=u+\'piwik.js\'; s.parentNode.insertBefore(g,s);\n })();\n</script>\n<noscript><p><img src="//telemaco.clarin-d.uni-saarland.de/piwik/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>\n<!-- End Piwik Code -->\n</head>\n<body>\n <div class="titelei">\n <!-- Common header to comes here -->\n <a href="/hub">\n <img src="/hub-static/4148536_759df87a29.jpg"\n alt="Image of a hub, \xa9 Paul Watson, CC BY-NC-SA 2.0"></a>\n <a href="http://www.clarin-d.org"><img\n src="/hub-static/titelbild_02.jpg"\n alt="The Linguistic Teaching resources Hub"></a><br>\n <small>Image \xa9 Paul Watson, Licence <a href="http://creativecommons.org/licenses/by-nc-sa/2.0/">CC BY-NC-SA 2.0</a>\n </small>\n </div>\n <!-- Common line with login field comes here-->\n ', u'\n <div class="navi">\n <a href="/hub/">Home</a> | <!-- -->\n <a href="/hub/whatsnew/">What\'s new?</a> | <!-- -->\n <a href="/hub/browse/">Browse</a> | <!-- -->\n \n <a href="https://telemaco.clarin-d.uni-saarland.de/hub/loginform/">\n Login / Create Account</a> | <!-- -->\n \n <a href="/hub/advancedsearch/">Advanced search</a> | <!-- -->\n <div style="float:right">\n <form action="/hub/search/" \n method="POST"><input type=\'hidden\' name=\'csrfmiddlewaretoken\' value=\'R2dSUBK6OZLr5JKcwfA1wfLKlEs6icjH\' /><input type="text"\n maxlength="200" name="searchterm" value="search"><input type="hidden" \n name="start" value="0"><input type="submit"\n value="Search"></form></div>\n </div>\n \n ', u'\n <div>\n <!-- Specific part of each page -->\n <h1>', u'Advanced search', u'</h1>\n <div>'] |
self | [<Text Node: '<!DOCTYPE HTML> <html> <m'>, <Block Node: title. Contents: [<Text Node: 'TeLeMaCo'>]>, <Text Node: ' </title> <style type'>, <Block Node: tabline. Contents: [<Text Node: ' <div class="navi"> '>, <IfNode>, <Text Node: ' <a href="/hub/advanc'>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff3bb1a2290>, <Text Node: '<input type="text" '>, <IfNode>, <Text Node: ' '>]>, <Text Node: ' <div> <!-- Specific '>, <Block Node: headline. Contents: [<Text Node: 'A dummy headline'>]>, <Text Node: '</h1> <div>'>, <Block Node: content. Contents: [<Text Node: 'Some dummy content'>]>, <Text Node: '</div> </div> <!-- Co'>, <Block Node: footline. Contents: [<Text Node: ' <div> <a href'>]>, <Text Node: ' </body> </html> '>] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>}] |
/usr/lib/python2.7/dist-packages/django/template/debug.py
in render_node
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <Block Node: content. Contents: [<Text Node: 'Some dummy content'>]> |
self | [<Text Node: '<!DOCTYPE HTML> <html> <m'>, <Block Node: title. Contents: [<Text Node: 'TeLeMaCo'>]>, <Text Node: ' </title> <style type'>, <Block Node: tabline. Contents: [<Text Node: ' <div class="navi"> '>, <IfNode>, <Text Node: ' <a href="/hub/advanc'>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff3bb1a2290>, <Text Node: '<input type="text" '>, <IfNode>, <Text Node: ' '>]>, <Text Node: ' <div> <!-- Specific '>, <Block Node: headline. Contents: [<Text Node: 'A dummy headline'>]>, <Text Node: '</h1> <div>'>, <Block Node: content. Contents: [<Text Node: 'Some dummy content'>]>, <Text Node: '</div> </div> <!-- Co'>, <Block Node: footline. Contents: [<Text Node: ' <div> <a href'>]>, <Text Node: ' </body> </html> '>] |
e | TypeError("build_attrs() got an unexpected keyword argument 'type'",) |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>}] |
/usr/lib/python2.7/dist-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 = type(self)(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)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
push | <Block Node: content. Contents: [<Text Node: ' <form action="/hub/searc'>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff3bb1b7d10>, <Text Node: ' <table> '>, <Variable Node: form.media.css>, <Text Node: ' '>, <Variable Node: form.media.js>, <Text Node: ' '>, <Variable Node: form.as_table>, <Text Node: ' </table> <input type="su'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7ff3bb1a2810> |
block | <Block Node: content. Contents: [<Text Node: ' <form action="/hub/searc'>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff3bb1b7d10>, <Text Node: ' <table> '>, <Variable Node: form.media.css>, <Text Node: ' '>, <Variable Node: form.media.js>, <Text Node: ' '>, <Variable Node: form.as_table>, <Text Node: ' </table> <input type="su'>]> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>}] |
self | <Block Node: content. Contents: [<Text Node: 'Some dummy content'>]> |
/usr/lib/python2.7/dist-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: form.as_table> |
bit | u'\n' |
bits | [u'\n<form action="/hub/search/advanced/" method="POST">', u"<input type='hidden' name='csrfmiddlewaretoken' value='R2dSUBK6OZLr5JKcwfA1wfLKlEs6icjH' />", u'\n<table>\n', u'<link href="/static/selectable/css/dj.selectable.css?v=1.3.0" type="text/css" media="all" rel="stylesheet" />', u'\n', u'<script type="text/javascript" src="/static/selectable/js/jquery.dj.selectable.js?v=1.3.0"></script>', u'\n'] |
self | [<Text Node: ' <form action="/hub/searc'>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff3bb1b7d10>, <Text Node: ' <table> '>, <Variable Node: form.media.css>, <Text Node: ' '>, <Variable Node: form.media.js>, <Text Node: ' '>, <Variable Node: form.as_table>, <Text Node: ' </table> <input type="su'>] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>}] |
/usr/lib/python2.7/dist-packages/django/template/debug.py
in render_node
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <Variable Node: form.as_table> |
self | [<Text Node: ' <form action="/hub/searc'>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff3bb1b7d10>, <Text Node: ' <table> '>, <Variable Node: form.media.css>, <Text Node: ' '>, <Variable Node: form.media.js>, <Text Node: ' '>, <Variable Node: form.as_table>, <Text Node: ' </table> <input type="su'>] |
e | TypeError("build_attrs() got an unexpected keyword argument 'type'",) |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>}] |
/usr/lib/python2.7/dist-packages/django/template/debug.py
in render
e.django_template_source = node.source
raise
class DebugVariableNode(VariableNode):
def render(self, context):
try:
output = self.filter_expression.resolve(context)...
output = template_localtime(output, use_tz=context.use_tz)
output = localize(output, use_l10n=context.use_l10n)
output = force_text(output)
except UnicodeDecodeError:
return ''
except Exception as e:
Variable | Value |
---|---|
self | <Variable Node: form.as_table> |
e | TypeError("build_attrs() got an unexpected keyword argument 'type'",) |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>}] |
/usr/lib/python2.7/dist-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:
string_if_invalid = context.template.engine.string_if_invalid
if string_if_invalid:
Variable | Value |
---|---|
self | <django.template.base.FilterExpression object at 0x7ff3bb1a2ad0> |
ignore_failures | False |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>}] |
/usr/lib/python2.7/dist-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'form.as_table'> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>}] |
/usr/lib/python2.7/dist-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 = context.template.engine.string_if_invalid
else:
try: # method call (assuming no args required)
current = current()...
except TypeError:
try:
inspect.getcallargs(current)
except TypeError: # arguments *were* required
current = context.template.engine.string_if_invalid # invalid method call
else:
Variable | Value |
---|---|
current | <bound method AdvSearchForm.as_table of <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>> |
bit | u'as_table' |
e | TypeError("build_attrs() got an unexpected keyword argument 'type'",) |
self | <Variable: u'form.as_table'> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'form': <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)>}] |
/usr/lib/python2.7/dist-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 | <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)> |
/usr/lib/python2.7/dist-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,
'field_name': bf.html_name,
})
if top_errors:
Variable | Value |
---|---|
bf | <django.forms.forms.BoundField object at 0x7ff3bb16ced0> |
name | 'title' |
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_title">Title:</label>' |
field | <django.forms.fields.CharField object at 0x7ff3bb1c3590> |
row_ender | u'</td></tr>' |
bf_errors | [] |
errors_on_separate_row | False |
hidden_fields | [] |
css_classes | u'' |
help_text | u'' |
output | [] |
html_class_attr | u'' |
self | <AdvSearchForm bound=False, valid=False, fields=(title;keywords;author;institution;year;language;objective;audience;prerequisites;level;type;media_type;url;licence;access;description;bibtex_type;owner;start)> |
top_errors | [] |
help_text_html | u'<br /><span class="helptext">%s</span>' |
/usr/lib/python2.7/dist-packages/django/utils/html.py
in <lambda>
if six.PY2:
if '__unicode__' not in klass.__dict__:
raise ValueError(
"can't apply @html_safe to %s because it doesn't "
"define __unicode__()." % klass.__name__
)
klass_unicode = klass.__unicode__
klass.__unicode__ = lambda self: mark_safe(klass_unicode(self))...
klass.__html__ = lambda self: unicode(self) # NOQA: unicode undefined on PY3
else:
if '__str__' not in klass.__dict__:
raise ValueError(
"can't apply @html_safe to %s because it doesn't "
"define __str__()." % klass.__name__
Variable | Value |
---|---|
self | <django.forms.forms.BoundField object at 0x7ff3bb16ced0> |
klass_unicode | <unbound method BoundField.__str__> |
/usr/lib/python2.7/dist-packages/django/forms/forms.py
in __str__
self.help_text = field.help_text or ''
self._initial_value = UNSET
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 0x7ff3bb16ced0> |
/usr/lib/python2.7/dist-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 force_text(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_title' |
widget | <selectable.forms.widgets.AutoCompleteWidget object at 0x7ff3bb1c35d0> |
name | 'title' |
self | <django.forms.forms.BoundField object at 0x7ff3bb16ced0> |
only_initial | False |
attrs | {u'id': u'id_title'} |
/usr/lib/python2.7/dist-packages/django/forms/widgets.py
in render
if self.is_localized:
return formats.localize_input(value)
return value
def render(self, name, value, attrs=None):
if value is None:
value = ''
final_attrs = self.build_attrs(attrs, type=self.input_type, name=name)...
if value != '':
# Only add the 'value' attribute if a value is non-empty.
final_attrs['value'] = force_text(self._format_value(value))
return format_html('<input{} />', flatatt(final_attrs))
Variable | Value |
---|---|
self | <selectable.forms.widgets.AutoCompleteWidget object at 0x7ff3bb1c35d0> |
attrs | {u'id': u'id_title'} |
value | u'' |
name | 'title' |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
mod_wsgi.listener_port | '443' |
CONTEXT_DOCUMENT_ROOT | '/var/www/html' |
SERVER_SOFTWARE | 'Apache/2.4.18 (Ubuntu)' |
SCRIPT_NAME | u'/hub' |
mod_wsgi.enable_sendfile | '0' |
mod_wsgi.handler_script | '' |
SERVER_SIGNATURE | '<address>Apache/2.4.18 (Ubuntu) Server at telemaco.clarin-d.uni-saarland.de Port 443</address>\n' |
REQUEST_METHOD | 'GET' |
PATH_INFO | u'/advancedsearch/' |
SERVER_PROTOCOL | 'HTTP/1.1' |
QUERY_STRING | '' |
SSL_TLS_SNI | 'telemaco.clarin-d.uni-saarland.de' |
HTTP_USER_AGENT | 'claudebot' |
SERVER_NAME | 'telemaco.clarin-d.uni-saarland.de' |
REMOTE_ADDR | '54.226.25.246' |
mod_wsgi.request_handler | 'wsgi-script' |
apache.version | (2, 4, 18) |
wsgi.url_scheme | 'https' |
PATH_TRANSLATED | '/var/www/html/advancedsearch/' |
SERVER_PORT | '443' |
wsgi.multiprocess | True |
mod_wsgi.input_chunked | '0' |
SERVER_ADDR | '134.96.53.199' |
DOCUMENT_ROOT | '/var/www/html' |
mod_wsgi.process_group | '' |
SCRIPT_FILENAME | '/var/www/html/hub/hub/wsgi.py' |
SERVER_ADMIN | 'j.knappen@mx.uni-saarland.de' |
wsgi.input | <mod_wsgi.Input object at 0x7ff3bb2614f0> |
HTTP_HOST | 'telemaco.clarin-d.uni-saarland.de' |
CONTEXT_PREFIX | '' |
wsgi.multithread | True |
mod_wsgi.callable_object | 'application' |
REQUEST_URI | '/hub/advancedsearch/' |
HTTP_ACCEPT | '*/*' |
wsgi.file_wrapper | '' |
wsgi.version | (1, 0) |
GATEWAY_INTERFACE | 'CGI/1.1' |
wsgi.run_once | False |
wsgi.errors | <mod_wsgi.Log object at 0x7ff3bb0b5c48> |
REMOTE_PORT | '48048' |
mod_wsgi.listener_host | '' |
REQUEST_SCHEME | 'https' |
mod_wsgi.version | (4, 3, 0) |
mod_wsgi.script_start | '1710838217360757' |
mod_wsgi.application_group | 'telemaco.clarin-d.uni-saarland.de|/hub' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.request_start | '1710838217360132' |
CSRF_COOKIE | u'R2dSUBK6OZLr5JKcwfA1wfLKlEs6icjH' |
CSRF_COOKIE_USED | True |
hub.settings
Setting | Value |
---|---|
SELECTABLE_ESCAPED_KEYS | u'********************' |
SECURE_BROWSER_XSS_FILTER | False |
USE_THOUSAND_SEPARATOR | False |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'en-gb' |
ROOT_URLCONF | 'hub.urls' |
MANAGERS | () |
SILENCED_SYSTEM_CHECKS | [] |
DEFAULT_CHARSET | 'utf-8' |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
STATIC_ROOT | '' |
SELECTABLE_MAX_LIMIT | 25 |
ALLOWED_HOSTS | ['*'] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SERVER_EMAIL | 'root@localhost' |
SECURE_HSTS_SECONDS | 0 |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M:%S.%f', '%H:%M') |
SECURE_REDIRECT_EXEMPT | [] |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': '', 'NAME': 'hub', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': 'UTC', 'USER': 'hubAdmin'}} |
EMAIL_SSL_KEYFILE | u'********************' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
DEFAULT_CONTENT_TYPE | 'text/html' |
APPEND_SLASH | True |
LOCALE_PATHS | () |
DATABASE_ROUTERS | [] |
DEFAULT_TABLESPACE | '' |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
SESSION_COOKIE_PATH | '/' |
SECURE_CONTENT_TYPE_NOSNIFF | False |
MIDDLEWARE_CLASSES | ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
DEFAULT_INDEX_TABLESPACE | '' |
LOGGING_CONFIG | 'logging.config.dictConfig' |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
FIRST_DAY_OF_WEEK | 0 |
WSGI_APPLICATION | 'hub.wsgi.application' |
TEMPLATE_DEBUG | True |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend',) |
FORCE_SCRIPT_NAME | None |
USE_X_FORWARDED_HOST | False |
EMAIL_TIMEOUT | None |
SECURE_SSL_HOST | None |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SESSION_COOKIE_SECURE | False |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
LANGUAGE_COOKIE_DOMAIN | 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.staticfiles', 'django.contrib.admin', 'selectable', 'materials') |
LANGUAGES | (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('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-au', 'Australian 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', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('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'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('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-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')) |
USE_L10N | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
STATICFILES_DIRS | () |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
LANGUAGE_COOKIE_AGE | None |
SESSION_COOKIE_HTTPONLY | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
CSRF_COOKIE_AGE | 31449600 |
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'********************' |
SESSION_FILE_PATH | None |
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/' |
DECIMAL_SEPARATOR | '.' |
IGNORABLE_404_URLS | () |
MIGRATION_MODULES | {} |
TEMPLATE_STRING_IF_INVALID | '' |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
FIXTURE_DIRS | () |
EMAIL_HOST | 'localhost' |
DATE_FORMAT | 'N j, Y' |
MEDIA_ROOT | '' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | () |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
MEDIA_URL | '' |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | ('/usr/local/hub/templates',) |
SITE_ID | 1 |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
LOGGING | {'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}, 'loggers': {'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True}}, 'version': 1} |
SHORT_DATE_FORMAT | 'm/d/Y' |
TEMPLATES | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
SECURE_SSL_REDIRECT | False |
TIME_ZONE | 'Europe/Berlin' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_USE_SSL | False |
TEMPLATE_CONTEXT_PROCESSORS | ('django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages') |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'hub.settings' |
USE_ETAGS | False |
LANGUAGES_BIDI | ('he', 'ar', 'fa', 'ur') |
FILE_UPLOAD_TEMP_DIR | None |
INTERNAL_IPS | () |
STATIC_URL | '/static/' |
EMAIL_PORT | 25 |
USE_TZ | True |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
TEST_NON_SERIALIZED_APPS | [] |
PASSWORD_HASHERS | u'********************' |
ABSOLUTE_URL_OVERRIDES | {} |
LANGUAGE_COOKIE_PATH | '/' |
CACHE_MIDDLEWARE_SECONDS | 600 |
EMAIL_SSL_CERTFILE | None |
CSRF_COOKIE_HTTPONLY | 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 | '' |
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 page generated by the handler for this status code.