Invalid filter: 'textile'
Request Method: | GET |
---|---|
Request URL: | http://theshapeofrex.com/full-credits/ |
Django Version: | 2.2.12 |
Exception Type: | TemplateSyntaxError |
Exception Value: | Invalid filter: 'textile' |
Exception Location: | /usr/lib/python3/dist-packages/django/template/base.py in find_filter, line 569 |
Python Executable: | /usr/bin/python3 |
Python Version: | 3.8.10 |
Python Path: | ['/home/django/django_project', '/usr/bin', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] |
Server time: | Fri, 29 Mar 2024 04:03:03 -0400 |
In template /home/django/django_project/tsor/templates/bio/bio_credits.html
, error at line 66
56 | and</br> |
---|---|
57 | William Hominuke |
58 | </h2> |
59 | </div> |
60 | {% for creditset in credits %} |
61 | {% for div in divisions %} |
62 | {% if div.rank == 0 %} |
63 | {% for credits in creditset.credit_set.all %} |
64 | {% if credits.division_id == div.id %} |
65 | <div class="topcreditWrap"> |
66 | <div class="topcreditTitle">{{credits.title|textile}}</div> |
67 | <div class="topcreditName">{% if credits.link %}<a href="{{credits.link}}" target="blank">{{credits.name|textile}}</a>{% else %}{{credits.name|textile}}{% endif %} |
68 | </div> |
69 | </div>{% endif %}{% endfor %} |
70 | {% else %} |
71 | <div class="divTitle"><h2>{{div.name}}</h2></div> |
72 | {% for credits in creditset.credit_set.all %} |
73 | {% if credits.division_id == div.id %} |
74 | <div class="creditWrap"> |
75 | {% if credits.title %} |
76 | <div class="creditTitle">{{credits.title|textile}}</div><div class="creditName">{% if credits.link %}<a href="{{credits.link}}" target="blank">{{credits.name|textile}}</a>{% else %}{{credits.name|textile}}{% endif %}</div> |
/usr/lib/python3/dist-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | TemplateSyntaxError("Invalid filter: 'textile'") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f74ca8bc7f0>> |
request | <WSGIRequest: GET '/full-credits/'> |
/usr/lib/python3/dist-packages/django/core/handlers/base.py
in _get_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:
response = self.process_exception_by_middleware(e, request)…
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function bio_credits at 0x7f74ca811af0> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f74ca884ee0>> |
request | <WSGIRequest: GET '/full-credits/'> |
resolver | <URLResolver 'tsor.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=tsor.views.bio.bio_credits, args=(), kwargs={}, url_name=bio_credits, app_names=[], namespaces=[], route=full-credits/) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f74ca8bc7f0> |
wrapped_callback | <function bio_credits at 0x7f74ca811af0> |
/usr/lib/python3/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:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function bio_credits at 0x7f74ca811af0> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f74ca884ee0>> |
request | <WSGIRequest: GET '/full-credits/'> |
resolver | <URLResolver 'tsor.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=tsor.views.bio.bio_credits, args=(), kwargs={}, url_name=bio_credits, app_names=[], namespaces=[], route=full-credits/) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f74ca8bc7f0> |
wrapped_callback | <function bio_credits at 0x7f74ca811af0> |
/home/django/django_project/tsor/views/bio.py
in bio_credits
def bio_credits(request):
credits = EndCredit.objects.all()
divisions = Division.objects.all().order_by('rank')
context = {
'credits': credits,
'divisions': divisions
}
return render(request, "bio/bio_credits.html", context)…
Variable | Value |
---|---|
context | {'credits': <QuerySet [<EndCredit: EndCredit object (1)>]>, 'divisions': <QuerySet [<Division: Top Billing>, <Division: Cast>, <Division: Crew>, <Division: Musicians>, <Division: Production & Post Production>]>} |
credits | <QuerySet [<EndCredit: EndCredit object (1)>]> |
divisions | <QuerySet [<Division: Top Billing>, <Division: Cast>, <Division: Crew>, <Division: Musicians>, <Division: Production & Post Production>]> |
request | <WSGIRequest: GET '/full-credits/'> |
/usr/lib/python3/dist-packages/django/shortcuts.py
in render
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Return a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)…
return HttpResponse(content, content_type, status)
def redirect(to, *args, permanent=False, **kwargs):
"""
Return an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'credits': <QuerySet [<EndCredit: EndCredit object (1)>]>, 'divisions': <QuerySet [<Division: Top Billing>, <Division: Cast>, <Division: Crew>, <Division: Musicians>, <Division: Production & Post Production>]>} |
request | <WSGIRequest: GET '/full-credits/'> |
status | None |
template_name | 'bio/bio_credits.html' |
using | None |
/usr/lib/python3/dist-packages/django/template/loader.py
in render_to_string
Load a template and render it with a context. Return a string.
template_name may be a string or a list of strings.
"""
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)
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'credits': <QuerySet [<EndCredit: EndCredit object (1)>]>, 'divisions': <QuerySet [<Division: Top Billing>, <Division: Cast>, <Division: Crew>, <Division: Musicians>, <Division: Production & Post Production>]>} |
request | <WSGIRequest: GET '/full-credits/'> |
template_name | 'bio/bio_credits.html' |
using | None |
/usr/lib/python3/dist-packages/django/template/loader.py
in get_template
Raise TemplateDoesNotExist if no such template exists.
"""
chain = []
engines = _engine_list(using)
for engine in engines:
try:
return engine.get_template(template_name)…
except TemplateDoesNotExist as e:
chain.append(e)
raise TemplateDoesNotExist(template_name, chain=chain)
Variable | Value |
---|---|
chain | [] |
engine | <django.template.backends.django.DjangoTemplates object at 0x7f74ca8029d0> |
engines | [<django.template.backends.django.DjangoTemplates object at 0x7f74ca8029d0>] |
template_name | 'bio/bio_credits.html' |
using | None |
/usr/lib/python3/dist-packages/django/template/backends/django.py
in get_template
self.engine = Engine(self.dirs, self.app_dirs, **options)
def from_string(self, template_code):
return Template(self.engine.from_string(template_code), self)
def get_template(self, template_name):
try:
return Template(self.engine.get_template(template_name), self)…
except TemplateDoesNotExist as exc:
reraise(exc, self)
def get_templatetag_libraries(self, custom_libraries):
"""
Return a collation of template tag libraries from installed
Variable | Value |
---|---|
self | <django.template.backends.django.DjangoTemplates object at 0x7f74ca8029d0> |
template_name | 'bio/bio_credits.html' |
/usr/lib/python3/dist-packages/django/template/engine.py
in get_template
return Template(template_code, engine=self)
def get_template(self, template_name):
"""
Return a compiled Template object for the given template name,
handling template inheritance recursively.
"""
template, origin = self.find_template(template_name)…
if not hasattr(template, 'render'):
# template needs to be compiled
template = Template(template, origin, template_name, engine=self)
return template
def render_to_string(self, template_name, context=None):
Variable | Value |
---|---|
self | <django.template.engine.Engine object at 0x7f74ca7da3a0> |
template_name | 'bio/bio_credits.html' |
/usr/lib/python3/dist-packages/django/template/engine.py
in find_template
raise ImproperlyConfigured(
"Invalid value in template loaders configuration: %r" % loader)
def find_template(self, name, dirs=None, skip=None):
tried = []
for loader in self.template_loaders:
try:
template = loader.get_template(name, skip=skip)…
return template, template.origin
except TemplateDoesNotExist as e:
tried.extend(e.tried)
raise TemplateDoesNotExist(name, tried=tried)
def from_string(self, template_code):
Variable | Value |
---|---|
dirs | None |
loader | <django.template.loaders.filesystem.Loader object at 0x7f74ca7da490> |
name | 'bio/bio_credits.html' |
self | <django.template.engine.Engine object at 0x7f74ca7da3a0> |
skip | None |
tried | [] |
/usr/lib/python3/dist-packages/django/template/loaders/base.py
in get_template
try:
contents = self.get_contents(origin)
except TemplateDoesNotExist:
tried.append((origin, 'Source does not exist'))
continue
else:
return Template(…
contents, origin, origin.template_name, self.engine,
)
raise TemplateDoesNotExist(template_name, tried=tried)
def get_template_sources(self, template_name):
Variable | Value |
---|---|
contents | ('{% extends "base.html" %}\n' '{% load markup %}\n' '{% load thumbnail %}\n' '{% load social %}\n' '\n' '{% block extra-css %}\n' '<link rel="stylesheet" href="/static/css/slim.css" type="text/css"/>\n' '<link rel="stylesheet" href="/static/css/bio.css" type="text/css"/>\n' '<link rel="stylesheet" type="text/css" ' 'href="/static/fancybox/jquery.fancybox-1.3.4.css" />\n' '<style type="text/css">\n' '\t#nav ul li a#bio {\n' '\t\tbackground-position: 0 -41px;\n' '\t}\n' '\t.bio {\n' '\t\twidth: 660px;\n' '\t\tmargin-left: 110px;\n' '\t}\n' '</style>\n' '{% endblock %}\n' '\n' '{% block extra-js %}\n' '<script type="text/javascript" ' 'src="/static/js/jquery.easing.1.3.js"></script>\n' '<script type="text/javascript" ' 'src="/static/fancybox/jquery.easing-1.3.pack.js"></script>\n' '<script type="text/javascript" ' 'src="/static/fancybox/jquery.fancybox-1.3.4.js"></script>\n' '<script type="text/javascript">\n' '\t$(function() {\n' '\t\t$("a.bioimages").fancybox({\n' "\t\t\t'transitionIn'\t:\t'elastic',\n" "\t\t\t'transitionOut'\t:\t'none',\n" "\t\t\t'speedIn'\t\t:\t600,\n" "\t\t\t'speedOut'\t\t:\t200,\n" "\t\t\t'overlayShow'\t:\ttrue,\n" "\t\t\t'overlayColor'\t:\t'#000',\n" "\t\t\t'cyclic'\t\t:\ttrue,\n" "\t\t\t'easingIn'\t\t:\t'easeInOutExpo'\n" '\t\t});\n' '\t\n' '\t});\n' '\n' '</script>\n' '{% endblock %}\n' '\n' '{% block title %}FULL CREDITS - {% endblock %}\n' '\n' '{% block content %}\n' '<div class="bio_det">\n' '\t\t<div class="bio">\n' '\t\t\t<div class="biopg_head">\n' '\t\t\t<h1><a href="/bios/">BIO > </a>FULL CAST & CREW</h1>\n' '\t\t\t</div>\t\t\n' '\t\t\t<div class="creditHead">\n' '\t\t\t\t<h1>THE SHAPE OF REX</h1>\n' '\t\t\t\t<h2>Written, Directed & Produced</br>\n' '\t\t\t\t\tby</br>\n' '\t\t\t\t\tLayne Coleman</br>\n' '\t\t\t\t\tand</br>\n' '\t\t\t\t\tWilliam Hominuke\n' '\t\t\t\t</h2>\t\n' '\t\t\t</div>\n' '\t\t\t{% for creditset in credits %}\n' '\t\t\t{% for div in divisions %}\n' '\t\t\t{% if div.rank == 0 %}\n' '\t\t\t{% for credits in creditset.credit_set.all %}\n' '\t\t\t{% if credits.division_id == div.id %}\n' '\t\t\t<div class="topcreditWrap">\n' '\t\t\t<div class="topcreditTitle">{{credits.title|textile}}</div>\n' '\t\t\t<div class="topcreditName">{% if credits.link %}<a ' 'href="{{credits.link}}" target="blank">{{credits.name|textile}}</a>{% else ' '%}{{credits.name|textile}}{% endif %}\n' '\t\t\t</div>\n' '\t\t\t</div>{% endif %}{% endfor %}\n' '\t\t\t{% else %}\n' '\t\t\t<div class="divTitle"><h2>{{div.name}}</h2></div>\n' '\t\t\t{% for credits in creditset.credit_set.all %}\n' '\t\t\t{% if credits.division_id == div.id %}\n' '\t\t\t<div class="creditWrap">\n' '\t\t\t{% if credits.title %}\n' '\t\t\t<div class="creditTitle">{{credits.title|textile}}</div><div ' 'class="creditName">{% if credits.link %}<a href="{{credits.link}}" ' 'target="blank">{{credits.name|textile}}</a>{% else ' '%}{{credits.name|textile}}{% endif %}</div>\n' '\t\t\t{% else %}\n' '\t\t\t<div class="creditName2">{% if credits.link %}<a ' 'href="{{credits.link}}" target="blank">{{credits.name|textile}}</a>{% else ' '%}{{credits.name|textile}}{% endif %}\n' '\t\t\t<a href="{{credits.link}}" target="blank" class="music"><p>Click here ' 'for more info</p></a>\n' '\t\t\t</div>\n' '\t\t\t{% endif %}\n' '\t\t\t</div>\n' '\t\t\t{% endif %}\n' '\t\t\t{% endfor %}{% endif %}{% endfor %}{% endfor %}\n' '\t\t\t\n' '\t\t</div>\n' '\t\t<div class="back"><a href="/bios/"><< BACK</a></div>\n' '\t\n' '<div class="press_social">\n' '\t{% block social_networking %}\n' '\t{% social_links %}\n' '\t{% endblock %}\n' '</div>\n' '\n' '</div>\n' '{% endblock %}') |
origin | <django.template.base.Origin object at 0x7f74ca480730> |
self | <django.template.loaders.filesystem.Loader object at 0x7f74ca7da490> |
skip | None |
template_name | 'bio/bio_credits.html' |
tried | [] |
/usr/lib/python3/dist-packages/django/template/base.py
in __init__
engine = Engine.get_default()
if origin is None:
origin = Origin(UNKNOWN_SOURCE)
self.name = name
self.origin = origin
self.engine = engine
self.source = str(template_string) # May be lazy.
self.nodelist = self.compile_nodelist()…
def __iter__(self):
for node in self.nodelist:
yield from node
def _render(self, context):
Variable | Value |
---|---|
engine | <django.template.engine.Engine object at 0x7f74ca7da3a0> |
name | 'bio/bio_credits.html' |
origin | <django.template.base.Origin object at 0x7f74ca480730> |
self | <django.template.base.Template object at 0x7f74ca480bb0> |
template_string | ('{% extends "base.html" %}\n' '{% load markup %}\n' '{% load thumbnail %}\n' '{% load social %}\n' '\n' '{% block extra-css %}\n' '<link rel="stylesheet" href="/static/css/slim.css" type="text/css"/>\n' '<link rel="stylesheet" href="/static/css/bio.css" type="text/css"/>\n' '<link rel="stylesheet" type="text/css" ' 'href="/static/fancybox/jquery.fancybox-1.3.4.css" />\n' '<style type="text/css">\n' '\t#nav ul li a#bio {\n' '\t\tbackground-position: 0 -41px;\n' '\t}\n' '\t.bio {\n' '\t\twidth: 660px;\n' '\t\tmargin-left: 110px;\n' '\t}\n' '</style>\n' '{% endblock %}\n' '\n' '{% block extra-js %}\n' '<script type="text/javascript" ' 'src="/static/js/jquery.easing.1.3.js"></script>\n' '<script type="text/javascript" ' 'src="/static/fancybox/jquery.easing-1.3.pack.js"></script>\n' '<script type="text/javascript" ' 'src="/static/fancybox/jquery.fancybox-1.3.4.js"></script>\n' '<script type="text/javascript">\n' '\t$(function() {\n' '\t\t$("a.bioimages").fancybox({\n' "\t\t\t'transitionIn'\t:\t'elastic',\n" "\t\t\t'transitionOut'\t:\t'none',\n" "\t\t\t'speedIn'\t\t:\t600,\n" "\t\t\t'speedOut'\t\t:\t200,\n" "\t\t\t'overlayShow'\t:\ttrue,\n" "\t\t\t'overlayColor'\t:\t'#000',\n" "\t\t\t'cyclic'\t\t:\ttrue,\n" "\t\t\t'easingIn'\t\t:\t'easeInOutExpo'\n" '\t\t});\n' '\t\n' '\t});\n' '\n' '</script>\n' '{% endblock %}\n' '\n' '{% block title %}FULL CREDITS - {% endblock %}\n' '\n' '{% block content %}\n' '<div class="bio_det">\n' '\t\t<div class="bio">\n' '\t\t\t<div class="biopg_head">\n' '\t\t\t<h1><a href="/bios/">BIO > </a>FULL CAST & CREW</h1>\n' '\t\t\t</div>\t\t\n' '\t\t\t<div class="creditHead">\n' '\t\t\t\t<h1>THE SHAPE OF REX</h1>\n' '\t\t\t\t<h2>Written, Directed & Produced</br>\n' '\t\t\t\t\tby</br>\n' '\t\t\t\t\tLayne Coleman</br>\n' '\t\t\t\t\tand</br>\n' '\t\t\t\t\tWilliam Hominuke\n' '\t\t\t\t</h2>\t\n' '\t\t\t</div>\n' '\t\t\t{% for creditset in credits %}\n' '\t\t\t{% for div in divisions %}\n' '\t\t\t{% if div.rank == 0 %}\n' '\t\t\t{% for credits in creditset.credit_set.all %}\n' '\t\t\t{% if credits.division_id == div.id %}\n' '\t\t\t<div class="topcreditWrap">\n' '\t\t\t<div class="topcreditTitle">{{credits.title|textile}}</div>\n' '\t\t\t<div class="topcreditName">{% if credits.link %}<a ' 'href="{{credits.link}}" target="blank">{{credits.name|textile}}</a>{% else ' '%}{{credits.name|textile}}{% endif %}\n' '\t\t\t</div>\n' '\t\t\t</div>{% endif %}{% endfor %}\n' '\t\t\t{% else %}\n' '\t\t\t<div class="divTitle"><h2>{{div.name}}</h2></div>\n' '\t\t\t{% for credits in creditset.credit_set.all %}\n' '\t\t\t{% if credits.division_id == div.id %}\n' '\t\t\t<div class="creditWrap">\n' '\t\t\t{% if credits.title %}\n' '\t\t\t<div class="creditTitle">{{credits.title|textile}}</div><div ' 'class="creditName">{% if credits.link %}<a href="{{credits.link}}" ' 'target="blank">{{credits.name|textile}}</a>{% else ' '%}{{credits.name|textile}}{% endif %}</div>\n' '\t\t\t{% else %}\n' '\t\t\t<div class="creditName2">{% if credits.link %}<a ' 'href="{{credits.link}}" target="blank">{{credits.name|textile}}</a>{% else ' '%}{{credits.name|textile}}{% endif %}\n' '\t\t\t<a href="{{credits.link}}" target="blank" class="music"><p>Click here ' 'for more info</p></a>\n' '\t\t\t</div>\n' '\t\t\t{% endif %}\n' '\t\t\t</div>\n' '\t\t\t{% endif %}\n' '\t\t\t{% endfor %}{% endif %}{% endfor %}{% endfor %}\n' '\t\t\t\n' '\t\t</div>\n' '\t\t<div class="back"><a href="/bios/"><< BACK</a></div>\n' '\t\n' '<div class="press_social">\n' '\t{% block social_networking %}\n' '\t{% social_links %}\n' '\t{% endblock %}\n' '</div>\n' '\n' '</div>\n' '{% endblock %}') |
/usr/lib/python3/dist-packages/django/template/base.py
in compile_nodelist
tokens = lexer.tokenize()
parser = Parser(
tokens, self.engine.template_libraries, self.engine.template_builtins,
self.origin,
)
try:
return parser.parse()…
except Exception as e:
if self.engine.debug:
e.template_debug = self.get_exception_info(e, e.token)
raise
def get_exception_info(self, exception, token):
Variable | Value |
---|---|
lexer | <django.template.base.DebugLexer object at 0x7f74ca480070> |
parser | <django.template.base.Parser object at 0x7f74ca5f1d30> |
self | <django.template.base.Template object at 0x7f74ca480bb0> |
tokens | [<django.template.base.Token object at 0x7f74ca467430>, <django.template.base.Token object at 0x7f74ca467160>, <django.template.base.Token object at 0x7f74ca467b80>, <django.template.base.Token object at 0x7f74ca467e20>, <django.template.base.Token object at 0x7f74ca4676a0>, <django.template.base.Token object at 0x7f74ca4673a0>, <django.template.base.Token object at 0x7f74ca467460>, <django.template.base.Token object at 0x7f74ca467a90>, <django.template.base.Token object at 0x7f74ca4677f0>, <django.template.base.Token object at 0x7f74ca4674f0>, <django.template.base.Token object at 0x7f74ca467df0>, <django.template.base.Token object at 0x7f74ca467cd0>, <django.template.base.Token object at 0x7f74ca467a00>, <django.template.base.Token object at 0x7f74ca467220>, <django.template.base.Token object at 0x7f74ca467190>, <django.template.base.Token object at 0x7f74ca4673d0>, <django.template.base.Token object at 0x7f74ca467400>, <django.template.base.Token object at 0x7f74ca467c10>, <django.template.base.Token object at 0x7f74ca467820>, <django.template.base.Token object at 0x7f74ca467e80>, <django.template.base.Token object at 0x7f74ca426580>, <django.template.base.Token object at 0x7f74ca426be0>, <django.template.base.Token object at 0x7f74ca426700>, <django.template.base.Token object at 0x7f74ca426af0>, <django.template.base.Token object at 0x7f74ca4263d0>, <django.template.base.Token object at 0x7f74ca426490>, <django.template.base.Token object at 0x7f74ca426eb0>, <django.template.base.Token object at 0x7f74ca426280>, <django.template.base.Token object at 0x7f74ca426640>, <django.template.base.Token object at 0x7f74ca426940>, <django.template.base.Token object at 0x7f74ca426a30>, <django.template.base.Token object at 0x7f74ca426610>, <django.template.base.Token object at 0x7f74ca4268b0>, <django.template.base.Token object at 0x7f74ca426ca0>, <django.template.base.Token object at 0x7f74ca426880>, <django.template.base.Token object at 0x7f74ca4260a0>, <django.template.base.Token object at 0x7f74ca4268e0>, <django.template.base.Token object at 0x7f74ca4264c0>, <django.template.base.Token object at 0x7f74ca4269a0>, <django.template.base.Token object at 0x7f74ca426d90>, <django.template.base.Token object at 0x7f74ca4267f0>, <django.template.base.Token object at 0x7f74ca426e20>, <django.template.base.Token object at 0x7f74ca4261f0>, <django.template.base.Token object at 0x7f74ca4266d0>, <django.template.base.Token object at 0x7f74ca4262e0>, <django.template.base.Token object at 0x7f74ca4269d0>, <django.template.base.Token object at 0x7f74ca426670>, <django.template.base.Token object at 0x7f74ca426760>, <django.template.base.Token object at 0x7f74ca426cd0>, <django.template.base.Token object at 0x7f74ca426850>, <django.template.base.Token object at 0x7f74ca426b50>, <django.template.base.Token object at 0x7f74ca426820>, <django.template.base.Token object at 0x7f74ca426910>, <django.template.base.Token object at 0x7f74ca426bb0>, <django.template.base.Token object at 0x7f74ca434f70>, <django.template.base.Token object at 0x7f74ca434d90>, <django.template.base.Token object at 0x7f74ca434370>, <django.template.base.Token object at 0x7f74ca434dc0>, <django.template.base.Token object at 0x7f74ca434820>, <django.template.base.Token object at 0x7f74ca494eb0>, <django.template.base.Token object at 0x7f74ca4943d0>, <django.template.base.Token object at 0x7f74ca494640>, <django.template.base.Token object at 0x7f74ca494280>, <django.template.base.Token object at 0x7f74ca494f10>, <django.template.base.Token object at 0x7f74ca4940a0>, <django.template.base.Token object at 0x7f74ca494fd0>] |
/usr/lib/python3/dist-packages/django/template/base.py
in parse
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)
except Exception as e:
raise self.error(token, e)…
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
self.unclosed_block_tag(parse_until)
return nodelist
Variable | Value |
---|---|
command | 'extends' |
compile_func | <function do_extends at 0x7f74cb856ee0> |
nodelist | [] |
parse_until | [] |
self | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca5f1fa0> |
/usr/lib/python3/dist-packages/django/template/base.py
in parse
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)…
except Exception as e:
raise self.error(token, e)
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
Variable | Value |
---|---|
command | 'extends' |
compile_func | <function do_extends at 0x7f74cb856ee0> |
nodelist | [] |
parse_until | [] |
self | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca5f1fa0> |
/usr/lib/python3/dist-packages/django/template/loader_tags.py
in do_extends
the parent template itself (if it evaluates to a Template object).
"""
bits = token.split_contents()
if len(bits) != 2:
raise TemplateSyntaxError("'%s' takes one argument" % bits[0])
bits[1] = construct_relative_path(parser.origin.template_name, bits[1])
parent_name = parser.compile_filter(bits[1])
nodelist = parser.parse()…
if nodelist.get_nodes_by_type(ExtendsNode):
raise TemplateSyntaxError("'%s' cannot appear more than once in the same template" % bits[0])
return ExtendsNode(nodelist, parent_name)
@register.tag('include')
Variable | Value |
---|---|
bits | ['extends', '"base.html"'] |
parent_name | <django.template.base.FilterExpression object at 0x7f74ca494820> |
parser | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca5f1fa0> |
/usr/lib/python3/dist-packages/django/template/base.py
in parse
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)
except Exception as e:
raise self.error(token, e)…
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
self.unclosed_block_tag(parse_until)
return nodelist
Variable | Value |
---|---|
command | 'block' |
compile_func | <function do_block at 0x7f74cb856dc0> |
compiled_result | <Block Node: title. Contents: [<TextNode: 'FULL CREDITS - '>]> |
nodelist | [<TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f74ca494a00>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f74ca494c10>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f74ca494a30>, <TextNode: '\n\n'>, <Block Node: extra-css. Contents: [<TextNode: '\n<link rel="stylesheet" h'>]>, <TextNode: '\n\n'>, <Block Node: extra-js. Contents: [<TextNode: '\n<script type="text/javas'>]>, <TextNode: '\n\n'>, <Block Node: title. Contents: [<TextNode: 'FULL CREDITS - '>]>, <TextNode: '\n\n'>] |
parse_until | [] |
self | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca439250> |
/usr/lib/python3/dist-packages/django/template/base.py
in parse
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)…
except Exception as e:
raise self.error(token, e)
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
Variable | Value |
---|---|
command | 'block' |
compile_func | <function do_block at 0x7f74cb856dc0> |
compiled_result | <Block Node: title. Contents: [<TextNode: 'FULL CREDITS - '>]> |
nodelist | [<TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f74ca494a00>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f74ca494c10>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f74ca494a30>, <TextNode: '\n\n'>, <Block Node: extra-css. Contents: [<TextNode: '\n<link rel="stylesheet" h'>]>, <TextNode: '\n\n'>, <Block Node: extra-js. Contents: [<TextNode: '\n<script type="text/javas'>]>, <TextNode: '\n\n'>, <Block Node: title. Contents: [<TextNode: 'FULL CREDITS - '>]>, <TextNode: '\n\n'>] |
parse_until | [] |
self | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca439250> |
/usr/lib/python3/dist-packages/django/template/loader_tags.py
in do_block
# check for duplication.
try:
if block_name in parser.__loaded_blocks:
raise TemplateSyntaxError("'%s' tag with name '%s' appears more than once" % (bits[0], block_name))
parser.__loaded_blocks.append(block_name)
except AttributeError: # parser.__loaded_blocks isn't a list yet
parser.__loaded_blocks = [block_name]
nodelist = parser.parse(('endblock',))…
# This check is kept for backwards-compatibility. See #3100.
endblock = parser.next_token()
acceptable_endblocks = ('endblock', 'endblock %s' % block_name)
if endblock.contents not in acceptable_endblocks:
parser.invalid_block_tag(endblock, 'endblock', acceptable_endblocks)
Variable | Value |
---|---|
bits | ['block', 'content'] |
block_name | 'content' |
parser | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca439250> |
/usr/lib/python3/dist-packages/django/template/base.py
in parse
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)
except Exception as e:
raise self.error(token, e)…
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
self.unclosed_block_tag(parse_until)
return nodelist
Variable | Value |
---|---|
command | 'for' |
compile_func | <function do_for at 0x7f74cb85c430> |
nodelist | [<TextNode: '\n<div class="bio_det">\n\t\t'>] |
parse_until | ('endblock',) |
self | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca439a60> |
/usr/lib/python3/dist-packages/django/template/base.py
in parse
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)…
except Exception as e:
raise self.error(token, e)
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
Variable | Value |
---|---|
command | 'for' |
compile_func | <function do_for at 0x7f74cb85c430> |
nodelist | [<TextNode: '\n<div class="bio_det">\n\t\t'>] |
parse_until | ('endblock',) |
self | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca439a60> |
/usr/lib/python3/dist-packages/django/template/defaulttags.py
in do_for
loopvars = re.split(r' *, *', ' '.join(bits[1:in_index]))
for var in loopvars:
if not var or not invalid_chars.isdisjoint(var):
raise TemplateSyntaxError("'for' tag received an invalid argument:"
" %s" % token.contents)
sequence = parser.compile_filter(bits[in_index + 1])
nodelist_loop = parser.parse(('empty', 'endfor',))…
token = parser.next_token()
if token.contents == 'empty':
nodelist_empty = parser.parse(('endfor',))
parser.delete_first_token()
else:
nodelist_empty = None
Variable | Value |
---|---|
bits | ['for', 'creditset', 'in', 'credits'] |
in_index | -2 |
invalid_chars | frozenset({' ', "'", '"', '|'}) |
is_reversed | False |
loopvars | ['creditset'] |
parser | <django.template.base.Parser object at 0x7f74ca5f1d30> |
sequence | <django.template.base.FilterExpression object at 0x7f74ca46e2b0> |
token | <django.template.base.Token object at 0x7f74ca439a60> |
var | 'creditset' |
/usr/lib/python3/dist-packages/django/template/base.py
in parse
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)
except Exception as e:
raise self.error(token, e)…
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
self.unclosed_block_tag(parse_until)
return nodelist
Variable | Value |
---|---|
command | 'for' |
compile_func | <function do_for at 0x7f74cb85c430> |
nodelist | [<TextNode: '\n\t\t\t'>] |
parse_until | ('empty', 'endfor') |
self | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca4396a0> |
/usr/lib/python3/dist-packages/django/template/base.py
in parse
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)…
except Exception as e:
raise self.error(token, e)
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
Variable | Value |
---|---|
command | 'for' |
compile_func | <function do_for at 0x7f74cb85c430> |
nodelist | [<TextNode: '\n\t\t\t'>] |
parse_until | ('empty', 'endfor') |
self | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca4396a0> |
/usr/lib/python3/dist-packages/django/template/defaulttags.py
in do_for
loopvars = re.split(r' *, *', ' '.join(bits[1:in_index]))
for var in loopvars:
if not var or not invalid_chars.isdisjoint(var):
raise TemplateSyntaxError("'for' tag received an invalid argument:"
" %s" % token.contents)
sequence = parser.compile_filter(bits[in_index + 1])
nodelist_loop = parser.parse(('empty', 'endfor',))…
token = parser.next_token()
if token.contents == 'empty':
nodelist_empty = parser.parse(('endfor',))
parser.delete_first_token()
else:
nodelist_empty = None
Variable | Value |
---|---|
bits | ['for', 'div', 'in', 'divisions'] |
in_index | -2 |
invalid_chars | frozenset({' ', "'", '"', '|'}) |
is_reversed | False |
loopvars | ['div'] |
parser | <django.template.base.Parser object at 0x7f74ca5f1d30> |
sequence | <django.template.base.FilterExpression object at 0x7f74ca46e790> |
token | <django.template.base.Token object at 0x7f74ca4396a0> |
var | 'div' |
/usr/lib/python3/dist-packages/django/template/base.py
in parse
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)
except Exception as e:
raise self.error(token, e)…
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
self.unclosed_block_tag(parse_until)
return nodelist
Variable | Value |
---|---|
command | 'if' |
compile_func | <function do_if at 0x7f74cb85c940> |
nodelist | [<TextNode: '\n\t\t\t'>] |
parse_until | ('empty', 'endfor') |
self | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca4398e0> |
/usr/lib/python3/dist-packages/django/template/base.py
in parse
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)…
except Exception as e:
raise self.error(token, e)
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
Variable | Value |
---|---|
command | 'if' |
compile_func | <function do_if at 0x7f74cb85c940> |
nodelist | [<TextNode: '\n\t\t\t'>] |
parse_until | ('empty', 'endfor') |
self | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca4398e0> |
/usr/lib/python3/dist-packages/django/template/defaulttags.py
in do_if
``==``, ``!=``, ``>``, ``>=``, ``<`` and ``<=``.
Operator precedence follows Python.
"""
# {% if ... %}
bits = token.split_contents()[1:]
condition = TemplateIfParser(parser, bits).parse()
nodelist = parser.parse(('elif', 'else', 'endif'))…
conditions_nodelists = [(condition, nodelist)]
token = parser.next_token()
# {% elif ... %} (repeatable)
while token.contents.startswith('elif'):
bits = token.split_contents()[1:]
Variable | Value |
---|---|
bits | ['div.rank', '==', '0'] |
condition | (== (literal <django.template.base.FilterExpression object at 0x7f74ca43d5b0>) (literal <django.template.base.FilterExpression object at 0x7f74ca46fbe0>)) |
parser | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca4398e0> |
/usr/lib/python3/dist-packages/django/template/base.py
in parse
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)
except Exception as e:
raise self.error(token, e)…
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
self.unclosed_block_tag(parse_until)
return nodelist
Variable | Value |
---|---|
command | 'for' |
compile_func | <function do_for at 0x7f74cb85c430> |
nodelist | [<TextNode: '\n\t\t\t'>] |
parse_until | ('elif', 'else', 'endif') |
self | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca4392b0> |
/usr/lib/python3/dist-packages/django/template/base.py
in parse
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)…
except Exception as e:
raise self.error(token, e)
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
Variable | Value |
---|---|
command | 'for' |
compile_func | <function do_for at 0x7f74cb85c430> |
nodelist | [<TextNode: '\n\t\t\t'>] |
parse_until | ('elif', 'else', 'endif') |
self | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca4392b0> |
/usr/lib/python3/dist-packages/django/template/defaulttags.py
in do_for
loopvars = re.split(r' *, *', ' '.join(bits[1:in_index]))
for var in loopvars:
if not var or not invalid_chars.isdisjoint(var):
raise TemplateSyntaxError("'for' tag received an invalid argument:"
" %s" % token.contents)
sequence = parser.compile_filter(bits[in_index + 1])
nodelist_loop = parser.parse(('empty', 'endfor',))…
token = parser.next_token()
if token.contents == 'empty':
nodelist_empty = parser.parse(('endfor',))
parser.delete_first_token()
else:
nodelist_empty = None
Variable | Value |
---|---|
bits | ['for', 'credits', 'in', 'creditset.credit_set.all'] |
in_index | -2 |
invalid_chars | frozenset({' ', "'", '"', '|'}) |
is_reversed | False |
loopvars | ['credits'] |
parser | <django.template.base.Parser object at 0x7f74ca5f1d30> |
sequence | <django.template.base.FilterExpression object at 0x7f74ca46f940> |
token | <django.template.base.Token object at 0x7f74ca4392b0> |
var | 'credits' |
/usr/lib/python3/dist-packages/django/template/base.py
in parse
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)
except Exception as e:
raise self.error(token, e)…
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
self.unclosed_block_tag(parse_until)
return nodelist
Variable | Value |
---|---|
command | 'if' |
compile_func | <function do_if at 0x7f74cb85c940> |
nodelist | [<TextNode: '\n\t\t\t'>] |
parse_until | ('empty', 'endfor') |
self | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca467790> |
/usr/lib/python3/dist-packages/django/template/base.py
in parse
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)…
except Exception as e:
raise self.error(token, e)
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
Variable | Value |
---|---|
command | 'if' |
compile_func | <function do_if at 0x7f74cb85c940> |
nodelist | [<TextNode: '\n\t\t\t'>] |
parse_until | ('empty', 'endfor') |
self | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca467790> |
/usr/lib/python3/dist-packages/django/template/defaulttags.py
in do_if
``==``, ``!=``, ``>``, ``>=``, ``<`` and ``<=``.
Operator precedence follows Python.
"""
# {% if ... %}
bits = token.split_contents()[1:]
condition = TemplateIfParser(parser, bits).parse()
nodelist = parser.parse(('elif', 'else', 'endif'))…
conditions_nodelists = [(condition, nodelist)]
token = parser.next_token()
# {% elif ... %} (repeatable)
while token.contents.startswith('elif'):
bits = token.split_contents()[1:]
Variable | Value |
---|---|
bits | ['credits.division_id', '==', 'div.id'] |
condition | (== (literal <django.template.base.FilterExpression object at 0x7f74ca46f7f0>) (literal <django.template.base.FilterExpression object at 0x7f74ca46f190>)) |
parser | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca467790> |
/usr/lib/python3/dist-packages/django/template/base.py
in parse
self.extend_nodelist(nodelist, TextNode(token.contents), token)
elif token.token_type.value == 1: # TokenType.VAR
if not token.contents:
raise self.error(token, 'Empty variable tag on line %d' % token.lineno)
try:
filter_expression = self.compile_filter(token.contents)
except TemplateSyntaxError as e:
raise self.error(token, e)…
var_node = VariableNode(filter_expression)
self.extend_nodelist(nodelist, var_node, token)
elif token.token_type.value == 2: # TokenType.BLOCK
try:
command = token.contents.split()[0]
except IndexError:
Variable | Value |
---|---|
nodelist | [<TextNode: '\n\t\t\t<div class="topcredit'>] |
parse_until | ('elif', 'else', 'endif') |
self | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca4672b0> |
/usr/lib/python3/dist-packages/django/template/base.py
in parse
# Use the raw values here for TokenType.* for a tiny performance boost.
if token.token_type.value == 0: # TokenType.TEXT
self.extend_nodelist(nodelist, TextNode(token.contents), token)
elif token.token_type.value == 1: # TokenType.VAR
if not token.contents:
raise self.error(token, 'Empty variable tag on line %d' % token.lineno)
try:
filter_expression = self.compile_filter(token.contents)…
except TemplateSyntaxError as e:
raise self.error(token, e)
var_node = VariableNode(filter_expression)
self.extend_nodelist(nodelist, var_node, token)
elif token.token_type.value == 2: # TokenType.BLOCK
try:
Variable | Value |
---|---|
nodelist | [<TextNode: '\n\t\t\t<div class="topcredit'>] |
parse_until | ('elif', 'else', 'endif') |
self | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | <django.template.base.Token object at 0x7f74ca4672b0> |
/usr/lib/python3/dist-packages/django/template/base.py
in compile_filter
self.tags.update(lib.tags)
self.filters.update(lib.filters)
def compile_filter(self, token):
"""
Convenient wrapper for FilterExpression
"""
return FilterExpression(token, self)…
def find_filter(self, filter_name):
if filter_name in self.filters:
return self.filters[filter_name]
else:
raise TemplateSyntaxError("Invalid filter: '%s'" % filter_name)
Variable | Value |
---|---|
self | <django.template.base.Parser object at 0x7f74ca5f1d30> |
token | 'credits.title|textile' |
/usr/lib/python3/dist-packages/django/template/base.py
in __init__
filter_name = match.group("filter_name")
args = []
constant_arg, var_arg = match.group("constant_arg", "var_arg")
if constant_arg:
args.append((False, Variable(constant_arg).resolve({})))
elif var_arg:
args.append((True, Variable(var_arg)))
filter_func = parser.find_filter(filter_name)…
self.args_check(filter_name, filter_func, args)
filters.append((filter_func, args))
upto = match.end()
if upto != len(token):
raise TemplateSyntaxError("Could not parse the remainder: '%s' "
"from '%s'" % (token[upto:], token))
Variable | Value |
---|---|
args | [] |
constant | None |
constant_arg | None |
filter_name | 'textile' |
filters | [] |
match | <re.Match object; span=(13, 21), match='|textile'> |
matches | <callable_iterator object at 0x7f74ca46f280> |
parser | <django.template.base.Parser object at 0x7f74ca5f1d30> |
self | <django.template.base.FilterExpression object at 0x7f74ca46f8e0> |
start | 13 |
token | 'credits.title|textile' |
upto | 13 |
var | 'credits.title' |
var_arg | None |
var_obj | <Variable: 'credits.title'> |
/usr/lib/python3/dist-packages/django/template/base.py
in find_filter
"""
return FilterExpression(token, self)
def find_filter(self, filter_name):
if filter_name in self.filters:
return self.filters[filter_name]
else:
raise TemplateSyntaxError("Invalid filter: '%s'" % filter_name)…
# This only matches constant *strings* (things in quotes or marked for
# translation). Numbers are treated as variables for implementation reasons
# (so that they retain their type when passed to filters).
constant_string = r"""
Variable | Value |
---|---|
filter_name | 'textile' |
self | <django.template.base.Parser object at 0x7f74ca5f1d30> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'theshapeofrex.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '44.197.108.187' |
PATH_INFO | '/full-credits/' |
QUERY_STRING | '' |
RAW_URI | '/full-credits/' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'theshapeofrex.com' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.0.4' |
gunicorn.socket | <gevent._socket3.socket object, fd=11, family=1, type=1, proto=0> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f74ca7c2760> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7f74ca7d2730> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
tsor.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/django/django_project' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': 'localhost', 'NAME': 'django', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'django'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATA_UPLOAD_MAX_NUMBER_FILES | 100 |
DATETIME_FORMAT | 'N j, Y, P' |
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'] |
DATE_FORMAT | 'N j, Y' |
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'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.gmail.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'theshapeofrex.com@gmail.com' |
EMAIL_PORT | '587' |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | 'True' |
FILE_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | 420 |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'sorl.thumbnail', 'tsor', 'tsor.templatetags', 'tsor.trailer', 'tsor.photo', 'tsor.news', 'tsor.press', 'tsor.contact', 'tsor.bio'] |
INTERNAL_IPS | [] |
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'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian 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'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('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 Bokmål'), ('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-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | '/' |
MANAGERS | [] |
MEDIA_ROOT | '/home/django/django_project/media/' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'tsor.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'tsor.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/django/django_project/tsor/static/' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/django/django_project/tsor/templates/'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'America/New_York' |
USE_I18N | False |
USE_L10N | False |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'tsor.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YEAR_MONTH_FORMAT | 'F Y' |
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.