Invalid filter: 'removetags'
Request Method: | GET |
---|---|
Request URL: | http://www.fast-torrent.ru/anthology/svyatye-iz-bundoka/ |
Django Version: | 4.1.1 |
Exception Type: | TemplateSyntaxError |
Exception Value: | Invalid filter: 'removetags' |
Exception Location: | ./venv/lib/python3.10/site-packages/django/template/base.py, line 606, in find_filter |
Python Executable: | /usr/bin/uwsgi-core |
Python Version: | 3.10.12 |
Python Path: | ['.', '', '/lib/python310.zip', '/lib/python3.10', '/lib/python3.10/lib-dynload', './venv/lib/python3.10/site-packages'] |
Server time: | Tue, 19 Mar 2024 06:04:11 +0000 |
In template /home/webmaster/fasttorrent_ru3/templates/anthology/item.html
, error at line 72
62 | {{item.film.render_stars|safe}} |
---|---|
63 | </div> |
64 | |
65 | <a href='{{c_url}}'> |
66 | |
67 | {{ item.film.name }} <sup>{{ item.film.date_release|date:"Y" }}</sup> |
68 | {% if item.film.name_orig %}<br/><i>{{ item.film.name_orig }}</i>{% endif %} |
69 | </a></h2> |
70 | |
71 | |
72 | <p>{{item.film.announce|removetags:"div span p"|safe}}</p> |
73 | |
74 | |
75 | {%if film.coming_soon %} |
76 | <a href="{{c_url}}" target="_blank" class="button" >Cмотреть трейлер</a> |
77 | {% else %} |
78 | {% if not film.has_online %} |
79 | <a href="{{c_url}}" target="_blank" class='button'>Скачать</a> |
80 | {% else %} |
81 | <a href="{{c_url}}" target="_blank" class='button gren_search' title='Скачать или Смотреть онлайн'>Скачать и Смотреть</a> |
82 | {% endif %} |
./venv/lib/python3.10/site-packages/django/core/handlers/exception.py
, line 55, in inner
return inner
else:
@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: 'removetags'") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f99a24e37f0>> |
request | <WSGIRequest: GET '/anthology/svyatye-iz-bundoka/'> |
./venv/lib/python3.10/site-packages/django/core/handlers/base.py
, line 197, in _get_response
if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is an asynchronous view, run it in a subthread.
if asyncio.iscoroutinefunction(wrapped_callback):
wrapped_callback = async_to_sync(wrapped_callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
# Complain if the view returned None (a common error).
Variable | Value |
---|---|
callback | <function cache_page.<locals>._wrapper.<locals>._inner at 0x7f99a21a4d30> |
callback_args | () |
callback_kwargs | {'slug': 'svyatye-iz-bundoka'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <CsrfViewMiddleware get_response=convert_exception_to_response.<locals>.inner>> |
request | <WSGIRequest: GET '/anthology/svyatye-iz-bundoka/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f99a24e37f0> |
wrapped_callback | <function cache_page.<locals>._wrapper.<locals>._inner at 0x7f99a21a4d30> |
././site_utils/site_cache.py
, line 107, in _inner
# print('cache_page',key)
content = cache.get( key, None )
cached = True
if not content:
cached = False
resp = func( request, *args, **kwargs )…
content = resp.content
# Only stores in cache if is a regular HttpResponse returning text/html
if resp.__class__.__name__ == 'HttpResponse'\
and getattr( resp, 'mimetype', 'text/html' ) == 'text/html':
Variable | Value |
---|---|
args | () |
cached | False |
content | None |
expiration | 3600 |
func | <function anthology_item at 0x7f99a21a4ca0> |
key | 'dev:PAGE::anthology_item::slug-svyatye-iz-bundoka' |
kwargs | {'slug': 'svyatye-iz-bundoka'} |
request | <WSGIRequest: GET '/anthology/svyatye-iz-bundoka/'> |
tic | 4037370.463667526 |
././anthology/views.py
, line 148, in anthology_item
# print ('anthology_item', slug )
res = {
'MEDIA_URL' :settings.MEDIA_URL,
'THEME_MEDIA_URL' :settings.THEME_MEDIA_URL,
'anthology' :get_object_or_404( Anthology, slug=slug )
}
return render(request, 'anthology/item.html', res )…
@csrf_exempt
@login_required
def anthology_del( request ):
Variable | Value |
---|---|
request | <WSGIRequest: GET '/anthology/svyatye-iz-bundoka/'> |
res | {'MEDIA_URL': 'http://media5.cdnbase.com/media/', 'THEME_MEDIA_URL': 'http://media5.cdnbase.com/media/', 'anthology': <Anthology: Святые из Бундока>} |
slug | 'svyatye-iz-bundoka' |
./venv/lib/python3.10/site-packages/django/shortcuts.py
, line 24, in render
def render(
request, template_name, context=None, content_type=None, status=None, using=None
):
"""
Return an 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 | {'MEDIA_URL': 'http://media5.cdnbase.com/media/', 'THEME_MEDIA_URL': 'http://media5.cdnbase.com/media/', 'anthology': <Anthology: Святые из Бундока>} |
request | <WSGIRequest: GET '/anthology/svyatye-iz-bundoka/'> |
status | None |
template_name | 'anthology/item.html' |
using | None |
./venv/lib/python3.10/site-packages/django/template/loader.py
, line 61, 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 | {'MEDIA_URL': 'http://media5.cdnbase.com/media/', 'THEME_MEDIA_URL': 'http://media5.cdnbase.com/media/', 'anthology': <Anthology: Святые из Бундока>} |
request | <WSGIRequest: GET '/anthology/svyatye-iz-bundoka/'> |
template_name | 'anthology/item.html' |
using | None |
./venv/lib/python3.10/site-packages/django/template/loader.py
, line 15, 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 0x7f99a19ec8b0> |
engines | [<django.template.backends.django.DjangoTemplates object at 0x7f99a19ec8b0>] |
template_name | 'anthology/item.html' |
using | None |
./venv/lib/python3.10/site-packages/django/template/backends/django.py
, line 34, 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 0x7f99a19ec8b0> |
template_name | 'anthology/item.html' |
./venv/lib/python3.10/site-packages/django/template/engine.py
, line 175, 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 | <Engine: dirs=['templates'] app_dirs=True context_processors=['main.context_processors.media', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'main.context_processors.media'] debug=True loaders=[('django.template.loaders.cached.Loader', ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader'])] string_if_invalid='' file_charset='utf-8' libraries={'cache': 'django.templatetags.cache', 'i18n': 'django.templatetags.i18n', 'l10n': 'django.templatetags.l10n', 'static': 'django.templatetags.static', 'tz': 'django.templatetags.tz', 'admin_list': 'django.contrib.admin.templatetags.admin_list', 'admin_modify': 'django.contrib.admin.templatetags.admin_modify', 'admin_urls': 'django.contrib.admin.templatetags.admin_urls', 'log': 'django.contrib.admin.templatetags.log', 'photologue_tags': 'photologue.templatetags.photologue_tags', 'main_extras': 'main.templatetags.main_extras', 'message_entry': 'main.templatetags.message_entry', 'my_app_tags': 'main.templatetags.my_app_tags', 'releases': 'film.templatetags.releases', 'fbc': 'diamandas.myghtyboard.templatetags.fbc', 'karma': 'diamandas.myghtyboard.templatetags.karma', 'massmail_admin': 'massmail.templatetags.massmail_admin', 'fun_extras': 'fun.templatetags.fun_extras', 'banners_tags': 'banners_main.templatetags.banners_tags', 'notification_admin': 'favorite.templatetags.notification_admin', 'anthology_tags': 'anthology.templatetags.anthology_tags', 'generic_favorite': 'generic.templatetags.generic_favorite', 'generic_post': 'generic.templatetags.generic_post', 'community_context': 'community.templatetags.community_context', 'silk_filters': 'silk.templatetags.silk_filters', 'silk_inclusion': 'silk.templatetags.silk_inclusion', 'silk_nav': 'silk.templatetags.silk_nav'} builtins=['django.template.defaulttags', 'django.template.defaultfilters', 'django.template.loader_tags'] autoescape=True> |
template_name | 'anthology/item.html' |
./venv/lib/python3.10/site-packages/django/template/engine.py
, line 157, in find_template
"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.cached.Loader object at 0x7f99a1a3feb0> |
name | 'anthology/item.html' |
self | <Engine: dirs=['templates'] app_dirs=True context_processors=['main.context_processors.media', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'main.context_processors.media'] debug=True loaders=[('django.template.loaders.cached.Loader', ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader'])] string_if_invalid='' file_charset='utf-8' libraries={'cache': 'django.templatetags.cache', 'i18n': 'django.templatetags.i18n', 'l10n': 'django.templatetags.l10n', 'static': 'django.templatetags.static', 'tz': 'django.templatetags.tz', 'admin_list': 'django.contrib.admin.templatetags.admin_list', 'admin_modify': 'django.contrib.admin.templatetags.admin_modify', 'admin_urls': 'django.contrib.admin.templatetags.admin_urls', 'log': 'django.contrib.admin.templatetags.log', 'photologue_tags': 'photologue.templatetags.photologue_tags', 'main_extras': 'main.templatetags.main_extras', 'message_entry': 'main.templatetags.message_entry', 'my_app_tags': 'main.templatetags.my_app_tags', 'releases': 'film.templatetags.releases', 'fbc': 'diamandas.myghtyboard.templatetags.fbc', 'karma': 'diamandas.myghtyboard.templatetags.karma', 'massmail_admin': 'massmail.templatetags.massmail_admin', 'fun_extras': 'fun.templatetags.fun_extras', 'banners_tags': 'banners_main.templatetags.banners_tags', 'notification_admin': 'favorite.templatetags.notification_admin', 'anthology_tags': 'anthology.templatetags.anthology_tags', 'generic_favorite': 'generic.templatetags.generic_favorite', 'generic_post': 'generic.templatetags.generic_post', 'community_context': 'community.templatetags.community_context', 'silk_filters': 'silk.templatetags.silk_filters', 'silk_inclusion': 'silk.templatetags.silk_inclusion', 'silk_nav': 'silk.templatetags.silk_nav'} builtins=['django.template.defaulttags', 'django.template.defaultfilters', 'django.template.loader_tags'] autoescape=True> |
skip | None |
tried | [] |
./venv/lib/python3.10/site-packages/django/template/loaders/cached.py
, line 57, in get_template
if isinstance(cached, type) and issubclass(cached, TemplateDoesNotExist):
raise cached(template_name)
elif isinstance(cached, TemplateDoesNotExist):
raise copy_exception(cached)
return cached
try:
template = super().get_template(template_name, skip)…
except TemplateDoesNotExist as e:
self.get_template_cache[key] = (
copy_exception(e) if self.engine.debug else TemplateDoesNotExist
)
raise
else:
Variable | Value |
---|---|
__class__ | <class 'django.template.loaders.cached.Loader'> |
cached | None |
key | 'anthology/item.html' |
self | <django.template.loaders.cached.Loader object at 0x7f99a1a3feb0> |
skip | None |
template_name | 'anthology/item.html' |
./venv/lib/python3.10/site-packages/django/template/loaders/base.py
, line 28, 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,
)
Variable | Value |
---|---|
contents | ('{% extends "base.html" %}\n' '{% load main_extras banners_tags %}\n' '\n' '\n' '\n' '{% block title %}{% firstof seo.title anthology.title ' 'anthology.default_title %}{% endblock title%}\n' '\n' '{% block header %}Избранное{% endblock %}\n' '\n' '{% block crumb %}\n' '\t<a href="/">Главная</a> -\n' '\t<a href="/anthology/">Антологии</a>-\n' '\t{{anthology.name}}\n' '{% endblock %}\n' '\n' '\n' '\n' '{% block meta %}\n' '\t<meta name="description" content="{% firstof seo.description ' 'anthology.description settings.description %}" />\n' '\t<meta name="keywords" content="{% firstof seo.keywords anthology.keywords ' 'settings.keywords %}" />\n' '{% endblock %}\n' '\n' '\n' '{% block sidebar %}{% endblock sidebar%}\n' '\n' '{% block right_ad_block %}{% endblock %}\n' '\n' '{% block content %}\n' '\n' '\n' '{% load anthology_tags %}\n' '{% anthology_init %}\n' '\n' '\n' '<div class="ui-widget-header widget-header ui-corner-all page-head">\n' '\t<a href="/anthology/">Антологии</a> / \t{{anthology.name}}\n' '\t<div class="float_right anthology_controll" ' 'obj_id="{{anthology.id}}"></div>\n' '</div>\n' '\n' '\n' "<div id='anthology_item'>\n" '\n' "\t<div id='object_wraper'>\n" '\n' '\t\t<p>{{anthology.full_text|linebreaksbr}}</p>\n' '\n' '\t\t<ul class="film-list anthology_sortable" obj_id="{{anthology.id}}">\n' '\t\t\t\t{% for item in anthology.items %}\n' "\t\t\t\t\t{% url 'info' slug=item.film.slug as c_url %}\n" '\n' '\t\t\t\t\t<li class="anthologyitem" ' 'style="border-color:{{item.role.color}}" obj_id="{{item.id}}">\n' '\t\t\t\t\t\t<a class=\'film-image float_right\' href="{{c_url}}"><img ' 'src="{{item.film.get_video_list_url}}" ></a>\n' '\n' "\t\t\t\t\t\t<div class='anthologyitem-text'>\n" '\t\t\t\t\t\t<div class="float_right film_controll" ' 'obj_id=\'{{item.film.id}}\' style="z-index: 10;"></div>\n' '\n' '\t\t\t\t\t\t<div class="float_right anthologyitem_controll" ' 'obj_id="{{item.id}}"></div>\n' "\t\t\t\t\t\t<big>№ <b class='order'>{{forloop.counter}}</b> - " '{{item.role}}</big>\n' '\n' '\t\t\t\t\t\t\t<h2>\n' '\t\t\t\t\t\t\t<div class="serial_stars" obj_id="{{item.film.id}}">\n' '\t\t\t\t\t\t\t\t{{item.film.render_stars|safe}}\n' '\t\t\t\t\t\t\t</div>\n' '\n' "\t\t\t\t\t\t\t\t<a href='{{c_url}}'>\n" '\n' '\t\t\t\t\t\t\t\t{{ item.film.name }} <sup>{{ item.film.date_release|date:"Y" ' '}}</sup>\n' '\t\t\t\t\t\t\t\t{% if item.film.name_orig %}<br/><i>{{ item.film.name_orig ' '}}</i>{% endif %}\n' '\t\t\t\t\t\t\t</a></h2>\n' '\n' '\n' '\t\t\t\t\t\t\t<p>{{item.film.announce|removetags:"div span p"|safe}}</p>\n' '\n' '\n' '\t\t\t\t\t\t\t{%if film.coming_soon %}\n' '\t\t\t\t\t\t\t\t<a href="{{c_url}}" target="_blank" class="button" >Cмотреть ' 'трейлер</a>\n' '\t\t\t\t\t\t\t{% else %}\n' '\t\t\t\t\t\t\t\t{% if not film.has_online %}\n' '\t\t\t\t\t\t\t\t\t<a href="{{c_url}}" target="_blank" ' "class='button'>Скачать</a>\n" '\t\t\t\t\t\t\t\t{% else %}\n' '\t\t\t\t\t\t\t\t\t<a href="{{c_url}}" target="_blank" class=\'button ' "gren_search' title='Скачать или Смотреть онлайн'>Скачать и Смотреть</a>\n" '\t\t\t\t\t\t\t\t{% endif %}\n' '\t\t\t\t\t\t\t{% endif %}\n' '\n' '\n' '\t\t\t\t\t\t</div>\n' '\n' '\t\t\t\t\t</li>\n' '\t\t\t\t{% endfor %}\n' '\n' '\t\t</ul>\n' '\n' '\t\t<center class="margin">\n' '\t\t\t\t<button class="anthology_add_film two-columns hidden" ' 'obj_id="{{anthology.id}}" obj_name="{{anthology.name}}">Добавить фильм в ' 'антологию</button>\n' '\t\t</center>\n' '\n' '\t</div>\n' '\n' '\n' '<div id=\'anthology_add_new_dialog\' title="Добавить новую антологию" ' 'class="hidden">\n' '\t\t<h2>Название фильма</h2>\n' "\t\t<form id='anthology_add_new_form'>\n" '\t\t\t<input type="hidden" name="film_id">\n' '\t\t\t<p><input name="name"\t\t\t\t class=\'width100pct\' ' 'placeholder="Название антологии" /></p>\n' '\t\t\t<textarea name="full_text"\t class=\'width100pct\' ' 'placeholder="Описание антологии (не обязательно)" rows="4" ></textarea>\n' '\t\t</form>\n' '</div>\n' '\n' '<div id=\… <trimmed 5105 bytes string> |
origin | <Origin name='/home/webmaster/fasttorrent_ru3/templates/anthology/item.html'> |
self | <django.template.loaders.cached.Loader object at 0x7f99a1a3feb0> |
skip | None |
template_name | 'anthology/item.html' |
tried | [] |
./venv/lib/python3.10/site-packages/django/template/base.py
, line 154, 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 __repr__(self):
Variable | Value |
---|---|
engine | <Engine: dirs=['templates'] app_dirs=True context_processors=['main.context_processors.media', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'main.context_processors.media'] debug=True loaders=[('django.template.loaders.cached.Loader', ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader'])] string_if_invalid='' file_charset='utf-8' libraries={'cache': 'django.templatetags.cache', 'i18n': 'django.templatetags.i18n', 'l10n': 'django.templatetags.l10n', 'static': 'django.templatetags.static', 'tz': 'django.templatetags.tz', 'admin_list': 'django.contrib.admin.templatetags.admin_list', 'admin_modify': 'django.contrib.admin.templatetags.admin_modify', 'admin_urls': 'django.contrib.admin.templatetags.admin_urls', 'log': 'django.contrib.admin.templatetags.log', 'photologue_tags': 'photologue.templatetags.photologue_tags', 'main_extras': 'main.templatetags.main_extras', 'message_entry': 'main.templatetags.message_entry', 'my_app_tags': 'main.templatetags.my_app_tags', 'releases': 'film.templatetags.releases', 'fbc': 'diamandas.myghtyboard.templatetags.fbc', 'karma': 'diamandas.myghtyboard.templatetags.karma', 'massmail_admin': 'massmail.templatetags.massmail_admin', 'fun_extras': 'fun.templatetags.fun_extras', 'banners_tags': 'banners_main.templatetags.banners_tags', 'notification_admin': 'favorite.templatetags.notification_admin', 'anthology_tags': 'anthology.templatetags.anthology_tags', 'generic_favorite': 'generic.templatetags.generic_favorite', 'generic_post': 'generic.templatetags.generic_post', 'community_context': 'community.templatetags.community_context', 'silk_filters': 'silk.templatetags.silk_filters', 'silk_inclusion': 'silk.templatetags.silk_inclusion', 'silk_nav': 'silk.templatetags.silk_nav'} builtins=['django.template.defaulttags', 'django.template.defaultfilters', 'django.template.loader_tags'] autoescape=True> |
name | 'anthology/item.html' |
origin | <Origin name='/home/webmaster/fasttorrent_ru3/templates/anthology/item.html'> |
self | <Template template_string="{% extends "base.htm..."> |
template_string | ('{% extends "base.html" %}\n' '{% load main_extras banners_tags %}\n' '\n' '\n' '\n' '{% block title %}{% firstof seo.title anthology.title ' 'anthology.default_title %}{% endblock title%}\n' '\n' '{% block header %}Избранное{% endblock %}\n' '\n' '{% block crumb %}\n' '\t<a href="/">Главная</a> -\n' '\t<a href="/anthology/">Антологии</a>-\n' '\t{{anthology.name}}\n' '{% endblock %}\n' '\n' '\n' '\n' '{% block meta %}\n' '\t<meta name="description" content="{% firstof seo.description ' 'anthology.description settings.description %}" />\n' '\t<meta name="keywords" content="{% firstof seo.keywords anthology.keywords ' 'settings.keywords %}" />\n' '{% endblock %}\n' '\n' '\n' '{% block sidebar %}{% endblock sidebar%}\n' '\n' '{% block right_ad_block %}{% endblock %}\n' '\n' '{% block content %}\n' '\n' '\n' '{% load anthology_tags %}\n' '{% anthology_init %}\n' '\n' '\n' '<div class="ui-widget-header widget-header ui-corner-all page-head">\n' '\t<a href="/anthology/">Антологии</a> / \t{{anthology.name}}\n' '\t<div class="float_right anthology_controll" ' 'obj_id="{{anthology.id}}"></div>\n' '</div>\n' '\n' '\n' "<div id='anthology_item'>\n" '\n' "\t<div id='object_wraper'>\n" '\n' '\t\t<p>{{anthology.full_text|linebreaksbr}}</p>\n' '\n' '\t\t<ul class="film-list anthology_sortable" obj_id="{{anthology.id}}">\n' '\t\t\t\t{% for item in anthology.items %}\n' "\t\t\t\t\t{% url 'info' slug=item.film.slug as c_url %}\n" '\n' '\t\t\t\t\t<li class="anthologyitem" ' 'style="border-color:{{item.role.color}}" obj_id="{{item.id}}">\n' '\t\t\t\t\t\t<a class=\'film-image float_right\' href="{{c_url}}"><img ' 'src="{{item.film.get_video_list_url}}" ></a>\n' '\n' "\t\t\t\t\t\t<div class='anthologyitem-text'>\n" '\t\t\t\t\t\t<div class="float_right film_controll" ' 'obj_id=\'{{item.film.id}}\' style="z-index: 10;"></div>\n' '\n' '\t\t\t\t\t\t<div class="float_right anthologyitem_controll" ' 'obj_id="{{item.id}}"></div>\n' "\t\t\t\t\t\t<big>№ <b class='order'>{{forloop.counter}}</b> - " '{{item.role}}</big>\n' '\n' '\t\t\t\t\t\t\t<h2>\n' '\t\t\t\t\t\t\t<div class="serial_stars" obj_id="{{item.film.id}}">\n' '\t\t\t\t\t\t\t\t{{item.film.render_stars|safe}}\n' '\t\t\t\t\t\t\t</div>\n' '\n' "\t\t\t\t\t\t\t\t<a href='{{c_url}}'>\n" '\n' '\t\t\t\t\t\t\t\t{{ item.film.name }} <sup>{{ item.film.date_release|date:"Y" ' '}}</sup>\n' '\t\t\t\t\t\t\t\t{% if item.film.name_orig %}<br/><i>{{ item.film.name_orig ' '}}</i>{% endif %}\n' '\t\t\t\t\t\t\t</a></h2>\n' '\n' '\n' '\t\t\t\t\t\t\t<p>{{item.film.announce|removetags:"div span p"|safe}}</p>\n' '\n' '\n' '\t\t\t\t\t\t\t{%if film.coming_soon %}\n' '\t\t\t\t\t\t\t\t<a href="{{c_url}}" target="_blank" class="button" >Cмотреть ' 'трейлер</a>\n' '\t\t\t\t\t\t\t{% else %}\n' '\t\t\t\t\t\t\t\t{% if not film.has_online %}\n' '\t\t\t\t\t\t\t\t\t<a href="{{c_url}}" target="_blank" ' "class='button'>Скачать</a>\n" '\t\t\t\t\t\t\t\t{% else %}\n' '\t\t\t\t\t\t\t\t\t<a href="{{c_url}}" target="_blank" class=\'button ' "gren_search' title='Скачать или Смотреть онлайн'>Скачать и Смотреть</a>\n" '\t\t\t\t\t\t\t\t{% endif %}\n' '\t\t\t\t\t\t\t{% endif %}\n' '\n' '\n' '\t\t\t\t\t\t</div>\n' '\n' '\t\t\t\t\t</li>\n' '\t\t\t\t{% endfor %}\n' '\n' '\t\t</ul>\n' '\n' '\t\t<center class="margin">\n' '\t\t\t\t<button class="anthology_add_film two-columns hidden" ' 'obj_id="{{anthology.id}}" obj_name="{{anthology.name}}">Добавить фильм в ' 'антологию</button>\n' '\t\t</center>\n' '\n' '\t</div>\n' '\n' '\n' '<div id=\'anthology_add_new_dialog\' title="Добавить новую антологию" ' 'class="hidden">\n' '\t\t<h2>Название фильма</h2>\n' "\t\t<form id='anthology_add_new_form'>\n" '\t\t\t<input type="hidden" name="film_id">\n' '\t\t\t<p><input name="name"\t\t\t\t class=\'width100pct\' ' 'placeholder="Название антологии" /></p>\n' '\t\t\t<textarea name="full_text"\t class=\'width100pct\' ' 'placeholder="Описание антологии (не обязательно)" rows="4" ></textarea>\n' '\t\t</form>\n' '</div>\n' '\n' '<div id=\… <trimmed 5105 bytes string> |
./venv/lib/python3.10/site-packages/django/template/base.py
, line 200, in compile_nodelist
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 | <DebugLexer template_string="{% extends "base.htm...", verbatim=False> |
parser | <Parser tokens=[<Block token: "endblock content...">, <Text token: " </select> </...">, <Block token: "endfor...">, <Text token: "</option> ...">, <Var token: "role.name...">, <Text token: "">...">, <Var token: "role.id...">, <Text token: " <option value...">, <Block token: "for role in role_lis...">, <Text token: "">Добавить фильм в а...">, <Var token: "anthology.name...">, <Text token: "" obj_name="...">, <Var token: "anthology.id...">, <Text token: " </ul> <center...">, <Block token: "endfor...">, <Text token: " </div> ...">, <Block token: "endif...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if not film.has_onli...">, <Text token: " ...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if film.coming_soon...">, <Text token: "</p> ...">]> |
self | <Template template_string="{% extends "base.htm..."> |
tokens | [<Block token: "extends "base.html"...">, <Text token: "...">, <Block token: "load main_extras ban...">, <Text token: "...">, <Block token: "block title...">, <Block token: "firstof seo.title an...">, <Block token: "endblock title...">, <Text token: "...">, <Block token: "block header...">, <Text token: "Избранное...">, <Block token: "endblock...">, <Text token: "...">, <Block token: "block crumb...">, <Text token: " <a href="/">Главна...">, <Var token: "anthology.name...">, <Text token: "...">, <Block token: "endblock...">, <Text token: "...">, <Block token: "block meta...">, <Text token: " <meta name="descri...">, <Block token: "firstof seo.descript...">, <Text token: "" /> <meta name="ke...">, <Block token: "firstof seo.keywords...">, <Text token: "" />...">, <Block token: "endblock...">, <Text token: "...">, <Block token: "block sidebar...">, <Block token: "endblock sidebar...">, <Text token: "...">, <Block token: "block right_ad_block...">, <Block token: "endblock...">, <Text token: "...">, <Block token: "block content...">, <Text token: "...">, <Block token: "load anthology_tags...">, <Text token: "...">, <Block token: "anthology_init...">, <Text token: "<div class="ui-wi...">, <Var token: "anthology.name...">, <Text token: " <div class="float_...">, <Var token: "anthology.id...">, <Text token: ""></div></div><d...">, <Var token: "anthology.full_text|...">, <Text token: "</p> <ul class="f...">, <Var token: "anthology.id...">, <Text token: ""> ...">, <Block token: "for item in antholog...">, <Text token: " ...">, <Block token: "url 'info' slug=ite...">, <Text token: " <li class="an...">, <Var token: "item.role.color...">, <Text token: "" obj_id="...">, <Var token: "item.id...">, <Text token: ""> <a class='f...">, <Var token: "c_url...">, <Text token: ""><img src="...">, <Var token: "item.film.get_video_...">, <Text token: "" ></a> <div ...">, <Var token: "item.film.id...">, <Text token: "' style="z-index: 10...">, <Var token: "item.id...">, <Text token: ""></div> <big>...">, <Var token: "forloop.counter...">, <Text token: "</b> - ...">, <Var token: "item.role...">, <Text token: "</big> <h2>...">, <Var token: "item.film.id...">, <Text token: ""> ...">, <Var token: "item.film.render_sta...">, <Text token: " </div> ...">, <Var token: "c_url...">, <Text token: "'> ...">, <Var token: "item.film.name...">, <Text token: " <sup>...">, <Var token: "item.film.date_relea...">, <Text token: "</sup> ...">, <Block token: "if item.film.name_or...">, <Text token: "<br/><i>...">, <Var token: "item.film.name_orig...">, <Text token: "</i>...">, <Block token: "endif...">, <Text token: " </a></h2>...">, <Var token: "item.film.announce|r...">, <Text token: "</p> ...">, <Block token: "if film.coming_soon...">, <Text token: " <a href="...">, <Var token: "c_url...">, <Text token: "" target="_blank" cl...">, <Block token: "else...">, <Text token: " ...">, <Block token: "if not film.has_onli...">, <Text token: " <a href="...">, <Var token: "c_url...">, <Text token: "" target="_blank" cl...">, <Block token: "else...">, <Text token: " <a href="...">, <Var token: "c_url...">, <Text token: "" target="_blank" cl...">, <Block token: "endif...">, <Text token: " ...">, <Block token: "endif...">, <Text token: " </div> ...">, <Block token: "endfor...">, <Text token: " </ul> <center...">, <Var token: "anthology.id...">, <Text token: "" obj_name="...">, <Var token: "anthology.name...">, <Text token: "">Добавить фильм в а...">, <Block token: "for role in role_lis...">, <Text token: " <option value...">, <Var token: "role.id...">, <Text token: "">...">, <Var token: "role.name...">, <Text token: "</option> ...">, <Block token: "endfor...">, <Text token: " </select> </...">, <Block token: "endblock content...">] |
./venv/lib/python3.10/site-packages/django/template/base.py
, line 513, 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 0x7f99a4452560> |
nodelist | [] |
parse_until | [] |
self | <Parser tokens=[<Block token: "endblock content...">, <Text token: " </select> </...">, <Block token: "endfor...">, <Text token: "</option> ...">, <Var token: "role.name...">, <Text token: "">...">, <Var token: "role.id...">, <Text token: " <option value...">, <Block token: "for role in role_lis...">, <Text token: "">Добавить фильм в а...">, <Var token: "anthology.name...">, <Text token: "" obj_name="...">, <Var token: "anthology.id...">, <Text token: " </ul> <center...">, <Block token: "endfor...">, <Text token: " </div> ...">, <Block token: "endif...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if not film.has_onli...">, <Text token: " ...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if film.coming_soon...">, <Text token: "</p> ...">]> |
token | <Block token: "extends "base.html"..."> |
token_type | 2 |
./venv/lib/python3.10/site-packages/django/template/base.py
, line 511, 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 0x7f99a4452560> |
nodelist | [] |
parse_until | [] |
self | <Parser tokens=[<Block token: "endblock content...">, <Text token: " </select> </...">, <Block token: "endfor...">, <Text token: "</option> ...">, <Var token: "role.name...">, <Text token: "">...">, <Var token: "role.id...">, <Text token: " <option value...">, <Block token: "for role in role_lis...">, <Text token: "">Добавить фильм в а...">, <Var token: "anthology.name...">, <Text token: "" obj_name="...">, <Var token: "anthology.id...">, <Text token: " </ul> <center...">, <Block token: "endfor...">, <Text token: " </div> ...">, <Block token: "endif...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if not film.has_onli...">, <Text token: " ...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if film.coming_soon...">, <Text token: "</p> ...">]> |
token | <Block token: "extends "base.html"..."> |
token_type | 2 |
./venv/lib/python3.10/site-packages/django/template/loader_tags.py
, line 293, 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)
Variable | Value |
---|---|
bits | ['extends', '"base.html"'] |
parent_name | <FilterExpression '"base.html"'> |
parser | <Parser tokens=[<Block token: "endblock content...">, <Text token: " </select> </...">, <Block token: "endfor...">, <Text token: "</option> ...">, <Var token: "role.name...">, <Text token: "">...">, <Var token: "role.id...">, <Text token: " <option value...">, <Block token: "for role in role_lis...">, <Text token: "">Добавить фильм в а...">, <Var token: "anthology.name...">, <Text token: "" obj_name="...">, <Var token: "anthology.id...">, <Text token: " </ul> <center...">, <Block token: "endfor...">, <Text token: " </div> ...">, <Block token: "endif...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if not film.has_onli...">, <Text token: " ...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if film.coming_soon...">, <Text token: "</p> ...">]> |
token | <Block token: "extends "base.html"..."> |
./venv/lib/python3.10/site-packages/django/template/base.py
, line 513, 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 0x7f99a4452440> |
compiled_result | <Block Node: right_ad_block. Contents: []> |
nodelist | [<TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f999fadf010>, <TextNode: '\n\n\n\n'>, <Block Node: title. Contents: [<django.template.defaulttags.FirstOfNode object at 0x7f999fadfa90>]>, <TextNode: '\n\n'>, <Block Node: header. Contents: [<TextNode: 'Избранное'>]>, <TextNode: '\n\n'>, <Block Node: crumb. Contents: [<TextNode: '\n\t<a href="/">Главная</a>'>, <Variable Node: anthology.name>, <TextNode: '\n'>]>, <TextNode: '\n\n\n\n'>, <Block Node: meta. Contents: [<TextNode: '\n\t<meta name="description'>, <django.template.defaulttags.FirstOfNode object at 0x7f999fadc0a0>, <TextNode: '" />\n\t<meta name="keyword'>, <django.template.defaulttags.FirstOfNode object at 0x7f999fadf5b0>, <TextNode: '" />\n'>]>, <TextNode: '\n\n\n'>, <Block Node: sidebar. Contents: []>, <TextNode: '\n\n'>, <Block Node: right_ad_block. Contents: []>, <TextNode: '\n\n'>] |
parse_until | [] |
self | <Parser tokens=[<Block token: "endblock content...">, <Text token: " </select> </...">, <Block token: "endfor...">, <Text token: "</option> ...">, <Var token: "role.name...">, <Text token: "">...">, <Var token: "role.id...">, <Text token: " <option value...">, <Block token: "for role in role_lis...">, <Text token: "">Добавить фильм в а...">, <Var token: "anthology.name...">, <Text token: "" obj_name="...">, <Var token: "anthology.id...">, <Text token: " </ul> <center...">, <Block token: "endfor...">, <Text token: " </div> ...">, <Block token: "endif...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if not film.has_onli...">, <Text token: " ...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if film.coming_soon...">, <Text token: "</p> ...">]> |
token | <Block token: "block content..."> |
token_type | 2 |
./venv/lib/python3.10/site-packages/django/template/base.py
, line 511, 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 0x7f99a4452440> |
compiled_result | <Block Node: right_ad_block. Contents: []> |
nodelist | [<TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f999fadf010>, <TextNode: '\n\n\n\n'>, <Block Node: title. Contents: [<django.template.defaulttags.FirstOfNode object at 0x7f999fadfa90>]>, <TextNode: '\n\n'>, <Block Node: header. Contents: [<TextNode: 'Избранное'>]>, <TextNode: '\n\n'>, <Block Node: crumb. Contents: [<TextNode: '\n\t<a href="/">Главная</a>'>, <Variable Node: anthology.name>, <TextNode: '\n'>]>, <TextNode: '\n\n\n\n'>, <Block Node: meta. Contents: [<TextNode: '\n\t<meta name="description'>, <django.template.defaulttags.FirstOfNode object at 0x7f999fadc0a0>, <TextNode: '" />\n\t<meta name="keyword'>, <django.template.defaulttags.FirstOfNode object at 0x7f999fadf5b0>, <TextNode: '" />\n'>]>, <TextNode: '\n\n\n'>, <Block Node: sidebar. Contents: []>, <TextNode: '\n\n'>, <Block Node: right_ad_block. Contents: []>, <TextNode: '\n\n'>] |
parse_until | [] |
self | <Parser tokens=[<Block token: "endblock content...">, <Text token: " </select> </...">, <Block token: "endfor...">, <Text token: "</option> ...">, <Var token: "role.name...">, <Text token: "">...">, <Var token: "role.id...">, <Text token: " <option value...">, <Block token: "for role in role_lis...">, <Text token: "">Добавить фильм в а...">, <Var token: "anthology.name...">, <Text token: "" obj_name="...">, <Var token: "anthology.id...">, <Text token: " </ul> <center...">, <Block token: "endfor...">, <Text token: " </div> ...">, <Block token: "endif...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if not film.has_onli...">, <Text token: " ...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if film.coming_soon...">, <Text token: "</p> ...">]> |
token | <Block token: "block content..."> |
token_type | 2 |
./venv/lib/python3.10/site-packages/django/template/loader_tags.py
, line 232, in do_block
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 | <Parser tokens=[<Block token: "endblock content...">, <Text token: " </select> </...">, <Block token: "endfor...">, <Text token: "</option> ...">, <Var token: "role.name...">, <Text token: "">...">, <Var token: "role.id...">, <Text token: " <option value...">, <Block token: "for role in role_lis...">, <Text token: "">Добавить фильм в а...">, <Var token: "anthology.name...">, <Text token: "" obj_name="...">, <Var token: "anthology.id...">, <Text token: " </ul> <center...">, <Block token: "endfor...">, <Text token: " </div> ...">, <Block token: "endif...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if not film.has_onli...">, <Text token: " ...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if film.coming_soon...">, <Text token: "</p> ...">]> |
token | <Block token: "block content..."> |
./venv/lib/python3.10/site-packages/django/template/base.py
, line 513, 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 0x7f99a4443b50> |
compiled_result | <anthology.templatetags.anthology_tags.anthology_init_Node object at 0x7f999f81c250> |
filter_expression | <FilterExpression 'anthology.id'> |
nodelist | [<TextNode: '\n\n\n'>, <django.template.defaulttags.LoadNode object at 0x7f999fadf670>, <TextNode: '\n'>, <anthology.templatetags.anthology_tags.anthology_init_Node object at 0x7f999f81c250>, <TextNode: '\n\n\n<div class="ui-widget-'>, <Variable Node: anthology.name>, <TextNode: '\n\t<div class="float_right'>, <Variable Node: anthology.id>, <TextNode: '"></div>\n</div>\n\n\n<div id'>, <Variable Node: anthology.full_text|linebreaksbr>, <TextNode: '</p>\n\n\t\t<ul class="film-l'>, <Variable Node: anthology.id>, <TextNode: '">\n\t\t\t\t'>] |
parse_until | ('endblock',) |
self | <Parser tokens=[<Block token: "endblock content...">, <Text token: " </select> </...">, <Block token: "endfor...">, <Text token: "</option> ...">, <Var token: "role.name...">, <Text token: "">...">, <Var token: "role.id...">, <Text token: " <option value...">, <Block token: "for role in role_lis...">, <Text token: "">Добавить фильм в а...">, <Var token: "anthology.name...">, <Text token: "" obj_name="...">, <Var token: "anthology.id...">, <Text token: " </ul> <center...">, <Block token: "endfor...">, <Text token: " </div> ...">, <Block token: "endif...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if not film.has_onli...">, <Text token: " ...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if film.coming_soon...">, <Text token: "</p> ...">]> |
token | <Block token: "for item in antholog..."> |
token_type | 2 |
var_node | <Variable Node: anthology.id> |
./venv/lib/python3.10/site-packages/django/template/base.py
, line 511, 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 0x7f99a4443b50> |
compiled_result | <anthology.templatetags.anthology_tags.anthology_init_Node object at 0x7f999f81c250> |
filter_expression | <FilterExpression 'anthology.id'> |
nodelist | [<TextNode: '\n\n\n'>, <django.template.defaulttags.LoadNode object at 0x7f999fadf670>, <TextNode: '\n'>, <anthology.templatetags.anthology_tags.anthology_init_Node object at 0x7f999f81c250>, <TextNode: '\n\n\n<div class="ui-widget-'>, <Variable Node: anthology.name>, <TextNode: '\n\t<div class="float_right'>, <Variable Node: anthology.id>, <TextNode: '"></div>\n</div>\n\n\n<div id'>, <Variable Node: anthology.full_text|linebreaksbr>, <TextNode: '</p>\n\n\t\t<ul class="film-l'>, <Variable Node: anthology.id>, <TextNode: '">\n\t\t\t\t'>] |
parse_until | ('endblock',) |
self | <Parser tokens=[<Block token: "endblock content...">, <Text token: " </select> </...">, <Block token: "endfor...">, <Text token: "</option> ...">, <Var token: "role.name...">, <Text token: "">...">, <Var token: "role.id...">, <Text token: " <option value...">, <Block token: "for role in role_lis...">, <Text token: "">Добавить фильм в а...">, <Var token: "anthology.name...">, <Text token: "" obj_name="...">, <Var token: "anthology.id...">, <Text token: " </ul> <center...">, <Block token: "endfor...">, <Text token: " </div> ...">, <Block token: "endif...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if not film.has_onli...">, <Text token: " ...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if film.coming_soon...">, <Text token: "</p> ...">]> |
token | <Block token: "for item in antholog..."> |
token_type | 2 |
var_node | <Variable Node: anthology.id> |
./venv/lib/python3.10/site-packages/django/template/defaulttags.py
, line 854, in do_for
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()
Variable | Value |
---|---|
bits | ['for', 'item', 'in', 'anthology.items'] |
in_index | -2 |
invalid_chars | frozenset({"'", '|', ' ', '"'}) |
is_reversed | False |
loopvars | ['item'] |
parser | <Parser tokens=[<Block token: "endblock content...">, <Text token: " </select> </...">, <Block token: "endfor...">, <Text token: "</option> ...">, <Var token: "role.name...">, <Text token: "">...">, <Var token: "role.id...">, <Text token: " <option value...">, <Block token: "for role in role_lis...">, <Text token: "">Добавить фильм в а...">, <Var token: "anthology.name...">, <Text token: "" obj_name="...">, <Var token: "anthology.id...">, <Text token: " </ul> <center...">, <Block token: "endfor...">, <Text token: " </div> ...">, <Block token: "endif...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if not film.has_onli...">, <Text token: " ...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if film.coming_soon...">, <Text token: "</p> ...">]> |
sequence | <FilterExpression 'anthology.items'> |
token | <Block token: "for item in antholog..."> |
var | 'item' |
./venv/lib/python3.10/site-packages/django/template/base.py
, line 484, in parse
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_type == 2: # TokenType.BLOCK
try:
command = token.contents.split()[0]
except IndexError:
Variable | Value |
---|---|
command | 'if' |
compile_func | <function do_if at 0x7f99a4443eb0> |
compiled_result | <IfNode> |
filter_expression | <FilterExpression 'item.film.date_release|date:"Y"'> |
nodelist | [<TextNode: '\n\t\t\t\t\t'>, <URLNode view_name=''info'' args=[] kwargs={'slug': <FilterExpression 'item.film.slug'>} as='c_url'>, <TextNode: '\n\n\t\t\t\t\t<li class="antholo'>, <Variable Node: item.role.color>, <TextNode: '" obj_id="'>, <Variable Node: item.id>, <TextNode: '">\n\t\t\t\t\t\t<a class=\'film-i'>, <Variable Node: c_url>, <TextNode: '"><img src="'>, <Variable Node: item.film.get_video_list_url>, <TextNode: '" ></a>\n\n\t\t\t\t\t\t<div class'>, <Variable Node: item.film.id>, <TextNode: '\' style="z-index: 10;"></'>, <Variable Node: item.id>, <TextNode: '"></div>\n\t\t\t\t\t\t<big>№ <b '>, <Variable Node: forloop.counter>, <TextNode: '</b> - '>, <Variable Node: item.role>, <TextNode: '</big>\n\n\t\t\t\t\t\t\t<h2>\n\t\t\t\t\t'>, <Variable Node: item.film.id>, <TextNode: '">\n\t\t\t\t\t\t\t\t'>, <Variable Node: item.film.render_stars|safe>, <TextNode: '\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<'>, <Variable Node: c_url>, <TextNode: "'>\n\n\t\t\t\t\t\t\t\t">, <Variable Node: item.film.name>, <TextNode: ' <sup>'>, <Variable Node: item.film.date_release|date:"Y">, <TextNode: '</sup>\n\t\t\t\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t</a></h2>\n\n\n\t\t\t\t\t'>] |
parse_until | ('empty', 'endfor') |
self | <Parser tokens=[<Block token: "endblock content...">, <Text token: " </select> </...">, <Block token: "endfor...">, <Text token: "</option> ...">, <Var token: "role.name...">, <Text token: "">...">, <Var token: "role.id...">, <Text token: " <option value...">, <Block token: "for role in role_lis...">, <Text token: "">Добавить фильм в а...">, <Var token: "anthology.name...">, <Text token: "" obj_name="...">, <Var token: "anthology.id...">, <Text token: " </ul> <center...">, <Block token: "endfor...">, <Text token: " </div> ...">, <Block token: "endif...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if not film.has_onli...">, <Text token: " ...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if film.coming_soon...">, <Text token: "</p> ...">]> |
token | <Var token: "item.film.announce|r..."> |
token_type | 1 |
var_node | <Variable Node: item.film.date_release|date:"Y"> |
./venv/lib/python3.10/site-packages/django/template/base.py
, line 482, in parse
self.extend_nodelist(nodelist, TextNode(token.contents), token)
elif token_type == 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_type == 2: # TokenType.BLOCK
try:
Variable | Value |
---|---|
command | 'if' |
compile_func | <function do_if at 0x7f99a4443eb0> |
compiled_result | <IfNode> |
filter_expression | <FilterExpression 'item.film.date_release|date:"Y"'> |
nodelist | [<TextNode: '\n\t\t\t\t\t'>, <URLNode view_name=''info'' args=[] kwargs={'slug': <FilterExpression 'item.film.slug'>} as='c_url'>, <TextNode: '\n\n\t\t\t\t\t<li class="antholo'>, <Variable Node: item.role.color>, <TextNode: '" obj_id="'>, <Variable Node: item.id>, <TextNode: '">\n\t\t\t\t\t\t<a class=\'film-i'>, <Variable Node: c_url>, <TextNode: '"><img src="'>, <Variable Node: item.film.get_video_list_url>, <TextNode: '" ></a>\n\n\t\t\t\t\t\t<div class'>, <Variable Node: item.film.id>, <TextNode: '\' style="z-index: 10;"></'>, <Variable Node: item.id>, <TextNode: '"></div>\n\t\t\t\t\t\t<big>№ <b '>, <Variable Node: forloop.counter>, <TextNode: '</b> - '>, <Variable Node: item.role>, <TextNode: '</big>\n\n\t\t\t\t\t\t\t<h2>\n\t\t\t\t\t'>, <Variable Node: item.film.id>, <TextNode: '">\n\t\t\t\t\t\t\t\t'>, <Variable Node: item.film.render_stars|safe>, <TextNode: '\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<'>, <Variable Node: c_url>, <TextNode: "'>\n\n\t\t\t\t\t\t\t\t">, <Variable Node: item.film.name>, <TextNode: ' <sup>'>, <Variable Node: item.film.date_release|date:"Y">, <TextNode: '</sup>\n\t\t\t\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t</a></h2>\n\n\n\t\t\t\t\t'>] |
parse_until | ('empty', 'endfor') |
self | <Parser tokens=[<Block token: "endblock content...">, <Text token: " </select> </...">, <Block token: "endfor...">, <Text token: "</option> ...">, <Var token: "role.name...">, <Text token: "">...">, <Var token: "role.id...">, <Text token: " <option value...">, <Block token: "for role in role_lis...">, <Text token: "">Добавить фильм в а...">, <Var token: "anthology.name...">, <Text token: "" obj_name="...">, <Var token: "anthology.id...">, <Text token: " </ul> <center...">, <Block token: "endfor...">, <Text token: " </div> ...">, <Block token: "endif...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if not film.has_onli...">, <Text token: " ...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if film.coming_soon...">, <Text token: "</p> ...">]> |
token | <Var token: "item.film.announce|r..."> |
token_type | 1 |
var_node | <Variable Node: item.film.date_release|date:"Y"> |
./venv/lib/python3.10/site-packages/django/template/base.py
, line 600, 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 | <Parser tokens=[<Block token: "endblock content...">, <Text token: " </select> </...">, <Block token: "endfor...">, <Text token: "</option> ...">, <Var token: "role.name...">, <Text token: "">...">, <Var token: "role.id...">, <Text token: " <option value...">, <Block token: "for role in role_lis...">, <Text token: "">Добавить фильм в а...">, <Var token: "anthology.name...">, <Text token: "" obj_name="...">, <Var token: "anthology.id...">, <Text token: " </ul> <center...">, <Block token: "endfor...">, <Text token: " </div> ...">, <Block token: "endif...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if not film.has_onli...">, <Text token: " ...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if film.coming_soon...">, <Text token: "</p> ...">]> |
token | 'item.film.announce|removetags:"div span p"|safe' |
./venv/lib/python3.10/site-packages/django/template/base.py
, line 698, in __init__
filter_name = match["filter_name"]
args = []
constant_arg, var_arg = match["constant_arg"], match["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' "
Variable | Value |
---|---|
args | [(False, 'div span p')] |
constant | None |
constant_arg | '"div span p"' |
filter_name | 'removetags' |
filters | [] |
match | <re.Match object; span=(18, 42), match='|removetags:"div span p"'> |
matches | <callable_iterator object at 0x7f999fe7f6d0> |
parser | <Parser tokens=[<Block token: "endblock content...">, <Text token: " </select> </...">, <Block token: "endfor...">, <Text token: "</option> ...">, <Var token: "role.name...">, <Text token: "">...">, <Var token: "role.id...">, <Text token: " <option value...">, <Block token: "for role in role_lis...">, <Text token: "">Добавить фильм в а...">, <Var token: "anthology.name...">, <Text token: "" obj_name="...">, <Var token: "anthology.id...">, <Text token: " </ul> <center...">, <Block token: "endfor...">, <Text token: " </div> ...">, <Block token: "endif...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if not film.has_onli...">, <Text token: " ...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if film.coming_soon...">, <Text token: "</p> ...">]> |
self | <FilterExpression 'item.film.announce|removetags:"div span p"|safe'> |
start | 18 |
token | 'item.film.announce|removetags:"div span p"|safe' |
upto | 18 |
var | 'item.film.announce' |
var_arg | None |
var_obj | <Variable: 'item.film.announce'> |
./venv/lib/python3.10/site-packages/django/template/base.py
, line 606, 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 | 'removetags' |
self | <Parser tokens=[<Block token: "endblock content...">, <Text token: " </select> </...">, <Block token: "endfor...">, <Text token: "</option> ...">, <Var token: "role.name...">, <Text token: "">...">, <Var token: "role.id...">, <Text token: " <option value...">, <Block token: "for role in role_lis...">, <Text token: "">Добавить фильм в а...">, <Var token: "anthology.name...">, <Text token: "" obj_name="...">, <Var token: "anthology.id...">, <Text token: " </ul> <center...">, <Block token: "endfor...">, <Text token: " </div> ...">, <Block token: "endif...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if not film.has_onli...">, <Text token: " ...">, <Block token: "else...">, <Text token: "" target="_blank" cl...">, <Var token: "c_url...">, <Text token: " <a href="...">, <Block token: "if film.coming_soon...">, <Text token: "</p> ...">]> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTENT_LENGTH | '' |
CONTENT_TYPE | '' |
DOCUMENT_ROOT | '/etc/nginx/html' |
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'www.fast-torrent.ru' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '54.85.255.74' |
HTTP_X_REAL_IP | '54.85.255.74' |
PATH_INFO | '********************' |
QUERY_STRING | '' |
REMOTE_ADDR | '45.142.212.135' |
REMOTE_PORT | '60058' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'http' |
REQUEST_URI | '/anthology/svyatye-iz-bundoka/' |
SCRIPT_NAME | '' |
SERVER_NAME | 'www.fast-torrent.ru' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.0' |
Setting | Value |
---|
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.