Could not parse the remainder: ': "%d %B %Y"' from 'item.created_at: "%d %B %Y"'
Request Method: | GET |
---|---|
Request URL: | http://xn--72-6kctvlmcyt5b5dl.xn--p1ai/events/ |
Django Version: | 4.2.9 |
Exception Type: | TemplateSyntaxError |
Exception Value: | Could not parse the remainder: ': "%d %B %Y"' from 'item.created_at: "%d %B %Y"' |
Exception Location: | /home/m/mamilo4h/django/venv_local/lib/python3.11/site-packages/django/template/base.py, line 703, in __init__ |
Raised during: | cms.views.CmsDispatchView |
Python Executable: | /home/m/mamilo4h/django/venv_local/bin/python3.11 |
Python Version: | 3.11.5 |
Python Path: | ['/home/m/mamilo4h/django', '/home/m/mamilo4h/django/venv_local/lib/python3.11/site-packages', '/home/m/mamilo4h/django', '/opt/passenger51/src/helper-scripts', '/home/m/mamilo4h/.local/lib/python311.zip', '/home/m/mamilo4h/.local/lib/python3.11', '/home/m/mamilo4h/.local/lib/python3.11/lib-dynload', '/home/m/mamilo4h/django/venv_local/lib/python3.11/site-packages'] |
Server time: | Tue, 19 Mar 2024 15:50:31 +0500 |
In template /home/m/mamilo4h/django/templates/events.html
, error at line 22
12 | |
---|---|
13 | <div class="item-list"> |
14 | <div class="items"> |
15 | {% for item in page_obj.object_list %} |
16 | <div class="item {% if forloop.counter|divisibleby:3 %}last{% endif %}"> |
17 | <a href="{{ item.link }}"> |
18 | {% thumbnail item.image '299x201' crop='center' as im %} |
19 | <img src="{{ im.url }}" alt=""/> |
20 | {% endthumbnail %} |
21 | |
22 | <div class="time">{{ item.created_at: "%d %B %Y" }}</div> |
23 | |
24 | <div class="title">{{ item.title }}</div> |
25 | |
26 | <div class="text">{{ item.short_text }}</div> |
27 | </a> |
28 | </div> |
29 | {% empty %} |
30 | <div class="item no">Событий пока нет</div> |
31 | {% endfor %} |
32 | </div> |
/home/m/mamilo4h/django/venv_local/lib/python3.11/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('Could not parse the remainder: \': "%d %B %Y"\' from \'item.created_at: "%d %B %Y"\'') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7efc20e333d0>> |
request | <WSGIRequest: GET '/events/'> |
/home/m/mamilo4h/django/venv_local/lib/python3.11/site-packages/django/core/handlers/base.py
, line 220, in _get_response
self.check_response(
response,
middleware_method,
name="%s.process_template_response"
% (middleware_method.__self__.__class__.__name__,),
)
try:
response = response.render() ^^^^^^^^^^^^^^^^^…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
return response
Variable | Value |
---|---|
callback | <function View.as_view.<locals>.view at 0x7efc20503e20> |
callback_args | () |
callback_kwargs | {'category': 'events'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <CsrfViewMiddleware get_response=convert_exception_to_response.<locals>.inner>> |
request | <WSGIRequest: GET '/events/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7efc20e333d0> |
wrapped_callback | <function View.as_view.<locals>.view at 0x7efc20503e20> |
/home/m/mamilo4h/django/venv_local/lib/python3.11/site-packages/django/template/response.py
, line 114, in render
If the content has already been rendered, this is a no-op.
Return the baked response instance.
"""
retval = self
if not self._is_rendered:
self.content = self.rendered_content ^^^^^^^^^^^^^^^^^^^^^…
for post_callback in self._post_render_callbacks:
newretval = post_callback(retval)
if newretval is not None:
retval = newretval
return retval
Variable | Value |
---|---|
retval | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
/home/m/mamilo4h/django/venv_local/lib/python3.11/site-packages/django/template/response.py
, line 90, in rendered_content
"""Return the freshly rendered content for the template and context
described by the TemplateResponse.
This *does not* set the final content of the response. To set the
response content, you must either call render(), or set the
content explicitly using the value of this property.
"""
template = self.resolve_template(self.template_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…
context = self.resolve_context(self.context_data)
return template.render(context, self._request)
def add_post_render_callback(self, callback):
"""Add a new post-rendering callback.
Variable | Value |
---|---|
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
/home/m/mamilo4h/django/venv_local/lib/python3.11/site-packages/django/template/response.py
, line 72, in resolve_template
del obj_dict[attr]
return obj_dict
def resolve_template(self, template):
"""Accept a template object, path-to-template, or list of paths."""
if isinstance(template, (list, tuple)):
return select_template(template, using=self.using) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…
elif isinstance(template, str):
return get_template(template, using=self.using)
else:
return template
def resolve_context(self, context):
Variable | Value |
---|---|
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | ['events.html'] |
/home/m/mamilo4h/django/venv_local/lib/python3.11/site-packages/django/template/loader.py
, line 42, in select_template
)
chain = []
engines = _engine_list(using)
for template_name in template_name_list:
for engine in engines:
try:
return engine.get_template(template_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…
except TemplateDoesNotExist as e:
chain.append(e)
if template_name_list:
raise TemplateDoesNotExist(", ".join(template_name_list), chain=chain)
else:
Variable | Value |
---|---|
chain | [] |
engine | <django.template.backends.django.DjangoTemplates object at 0x7efc20553f10> |
engines | [<django.template.backends.django.DjangoTemplates object at 0x7efc20553f10>] |
template_name | 'events.html' |
template_name_list | ['events.html'] |
using | None |
/home/m/mamilo4h/django/venv_local/lib/python3.11/site-packages/django/template/backends/django.py
, line 33, 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 0x7efc20553f10> |
template_name | 'events.html' |
/home/m/mamilo4h/django/venv_local/lib/python3.11/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=['/home/m/mamilo4h/django/templates'] app_dirs=True context_processors=['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages'] 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', 'mptt_admin': 'mptt.templatetags.mptt_admin', 'mptt_tags': 'mptt.templatetags.mptt_tags', 'sorl_thumbnail': 'sorl.thumbnail.templatetags.sorl_thumbnail', 'thumbnail': 'sorl.thumbnail.templatetags.thumbnail', 'widget_tweaks': 'widget_tweaks.templatetags.widget_tweaks', 'seo_tags': 'seo.templatetags.seo_tags', 'cms_tags': 'cms.templatetags.cms_tags', 'common_tags': 'common.templatetags.common_tags'} builtins=['django.template.defaulttags', 'django.template.defaultfilters', 'django.template.loader_tags'] autoescape=True> |
template_name | 'events.html' |
/home/m/mamilo4h/django/venv_local/lib/python3.11/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 0x7efc20598e10> |
name | 'events.html' |
self | <Engine: dirs=['/home/m/mamilo4h/django/templates'] app_dirs=True context_processors=['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages'] 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', 'mptt_admin': 'mptt.templatetags.mptt_admin', 'mptt_tags': 'mptt.templatetags.mptt_tags', 'sorl_thumbnail': 'sorl.thumbnail.templatetags.sorl_thumbnail', 'thumbnail': 'sorl.thumbnail.templatetags.thumbnail', 'widget_tweaks': 'widget_tweaks.templatetags.widget_tweaks', 'seo_tags': 'seo.templatetags.seo_tags', 'cms_tags': 'cms.templatetags.cms_tags', 'common_tags': 'common.templatetags.common_tags'} builtins=['django.template.defaulttags', 'django.template.defaultfilters', 'django.template.loader_tags'] autoescape=True> |
skip | None |
tried | [] |
/home/m/mamilo4h/django/venv_local/lib/python3.11/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 | 'events.html' |
self | <django.template.loaders.cached.Loader object at 0x7efc20598e10> |
skip | None |
template_name | 'events.html' |
/home/m/mamilo4h/django/venv_local/lib/python3.11/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 thumbnail %}\n' '\n' '\n' '{% block content %}\n' '\n' '<div class="block">\n' ' <div class="page-title">\n' " {% include '_breadcrumbs.html' %}\n" ' <h1>Мероприятия</h1>\n' ' </div>\n' '\n' ' <div class="item-list">\n' ' <div class="items">\n' ' {% for item in page_obj.object_list %}\n' ' <div class="item {% if forloop.counter|divisibleby:3 %}last{% ' 'endif %}">\n' ' <a href="{{ item.link }}">\n' " {% thumbnail item.image '299x201' crop='center' as im " '%}\n' ' <img src="{{ im.url }}" alt=""/>\n' ' {% endthumbnail %}\n' '\n' ' <div class="time">{{ item.created_at: "%d %B %Y" ' '}}</div>\n' '\n' ' <div class="title">{{ item.title }}</div>\n' '\n' ' <div class="text">{{ item.short_text }}</div>\n' ' </a>\n' ' </div>\n' ' {% empty %}\n' ' <div class="item no">Событий пока нет</div>\n' ' {% endfor %}\n' ' </div>\n' ' </div>\n' '</div>\n' '\n' "{% include '_gallery.html' %}\n" '\n' '{% endblock %}\n') |
origin | <Origin name='/home/m/mamilo4h/django/templates/events.html'> |
self | <django.template.loaders.cached.Loader object at 0x7efc20598e10> |
skip | None |
template_name | 'events.html' |
tried | [] |
/home/m/mamilo4h/django/venv_local/lib/python3.11/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=['/home/m/mamilo4h/django/templates'] app_dirs=True context_processors=['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages'] 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', 'mptt_admin': 'mptt.templatetags.mptt_admin', 'mptt_tags': 'mptt.templatetags.mptt_tags', 'sorl_thumbnail': 'sorl.thumbnail.templatetags.sorl_thumbnail', 'thumbnail': 'sorl.thumbnail.templatetags.thumbnail', 'widget_tweaks': 'widget_tweaks.templatetags.widget_tweaks', 'seo_tags': 'seo.templatetags.seo_tags', 'cms_tags': 'cms.templatetags.cms_tags', 'common_tags': 'common.templatetags.common_tags'} builtins=['django.template.defaulttags', 'django.template.defaultfilters', 'django.template.loader_tags'] autoescape=True> |
name | 'events.html' |
origin | <Origin name='/home/m/mamilo4h/django/templates/events.html'> |
self | <Template template_string="{% extends "base.htm..."> |
template_string | ('{% extends "base.html" %}\n' '{% load thumbnail %}\n' '\n' '\n' '{% block content %}\n' '\n' '<div class="block">\n' ' <div class="page-title">\n' " {% include '_breadcrumbs.html' %}\n" ' <h1>Мероприятия</h1>\n' ' </div>\n' '\n' ' <div class="item-list">\n' ' <div class="items">\n' ' {% for item in page_obj.object_list %}\n' ' <div class="item {% if forloop.counter|divisibleby:3 %}last{% ' 'endif %}">\n' ' <a href="{{ item.link }}">\n' " {% thumbnail item.image '299x201' crop='center' as im " '%}\n' ' <img src="{{ im.url }}" alt=""/>\n' ' {% endthumbnail %}\n' '\n' ' <div class="time">{{ item.created_at: "%d %B %Y" ' '}}</div>\n' '\n' ' <div class="title">{{ item.title }}</div>\n' '\n' ' <div class="text">{{ item.short_text }}</div>\n' ' </a>\n' ' </div>\n' ' {% empty %}\n' ' <div class="item no">Событий пока нет</div>\n' ' {% endfor %}\n' ' </div>\n' ' </div>\n' '</div>\n' '\n' "{% include '_gallery.html' %}\n" '\n' '{% endblock %}\n') |
/home/m/mamilo4h/django/venv_local/lib/python3.11/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=[<Text token: "...">, <Block token: "endblock...">, <Text token: "...">, <Block token: "include '_gallery.ht...">, <Text token: " </div> ...">, <Block token: "endfor...">, <Text token: " <div c...">, <Block token: "empty...">, <Text token: "</div> ...">, <Var token: "item.short_text...">, <Text token: "</div> ...">, <Var token: "item.title...">, <Text token: "</div> ...">]> |
self | <Template template_string="{% extends "base.htm..."> |
tokens | [<Block token: "extends "base.html"...">, <Text token: "...">, <Block token: "load thumbnail...">, <Text token: "...">, <Block token: "block content...">, <Text token: "<div class="block"...">, <Block token: "include '_breadcrumb...">, <Text token: " <h1>Меропри...">, <Block token: "for item in page_obj...">, <Text token: " <div cl...">, <Block token: "if forloop.counter|d...">, <Text token: "last...">, <Block token: "endif...">, <Text token: ""> <...">, <Var token: "item.link...">, <Text token: ""> ...">, <Block token: "thumbnail item.image...">, <Text token: " ...">, <Var token: "im.url...">, <Text token: "" alt=""/> ...">, <Block token: "endthumbnail...">, <Text token: " ...">, <Var token: "item.created_at: "%d...">, <Text token: "</div> ...">, <Var token: "item.title...">, <Text token: "</div> ...">, <Var token: "item.short_text...">, <Text token: "</div> ...">, <Block token: "empty...">, <Text token: " <div c...">, <Block token: "endfor...">, <Text token: " </div> ...">, <Block token: "include '_gallery.ht...">, <Text token: "...">, <Block token: "endblock...">, <Text token: "...">] |
/home/m/mamilo4h/django/venv_local/lib/python3.11/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 0x7efc2173c360> |
nodelist | [] |
parse_until | [] |
self | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: "...">, <Block token: "include '_gallery.ht...">, <Text token: " </div> ...">, <Block token: "endfor...">, <Text token: " <div c...">, <Block token: "empty...">, <Text token: "</div> ...">, <Var token: "item.short_text...">, <Text token: "</div> ...">, <Var token: "item.title...">, <Text token: "</div> ...">]> |
token | <Block token: "extends "base.html"..."> |
token_type | 2 |
/home/m/mamilo4h/django/venv_local/lib/python3.11/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 0x7efc2173c360> |
nodelist | [] |
parse_until | [] |
self | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: "...">, <Block token: "include '_gallery.ht...">, <Text token: " </div> ...">, <Block token: "endfor...">, <Text token: " <div c...">, <Block token: "empty...">, <Text token: "</div> ...">, <Var token: "item.short_text...">, <Text token: "</div> ...">, <Var token: "item.title...">, <Text token: "</div> ...">]> |
token | <Block token: "extends "base.html"..."> |
token_type | 2 |
/home/m/mamilo4h/django/venv_local/lib/python3.11/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=[<Text token: "...">, <Block token: "endblock...">, <Text token: "...">, <Block token: "include '_gallery.ht...">, <Text token: " </div> ...">, <Block token: "endfor...">, <Text token: " <div c...">, <Block token: "empty...">, <Text token: "</div> ...">, <Var token: "item.short_text...">, <Text token: "</div> ...">, <Var token: "item.title...">, <Text token: "</div> ...">]> |
token | <Block token: "extends "base.html"..."> |
/home/m/mamilo4h/django/venv_local/lib/python3.11/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 0x7efc2173c220> |
compiled_result | <django.template.defaulttags.LoadNode object at 0x7efc20492990> |
nodelist | [<TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7efc20492990>, <TextNode: '\n\n\n'>] |
parse_until | [] |
self | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: "...">, <Block token: "include '_gallery.ht...">, <Text token: " </div> ...">, <Block token: "endfor...">, <Text token: " <div c...">, <Block token: "empty...">, <Text token: "</div> ...">, <Var token: "item.short_text...">, <Text token: "</div> ...">, <Var token: "item.title...">, <Text token: "</div> ...">]> |
token | <Block token: "block content..."> |
token_type | 2 |
/home/m/mamilo4h/django/venv_local/lib/python3.11/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 0x7efc2173c220> |
compiled_result | <django.template.defaulttags.LoadNode object at 0x7efc20492990> |
nodelist | [<TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7efc20492990>, <TextNode: '\n\n\n'>] |
parse_until | [] |
self | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: "...">, <Block token: "include '_gallery.ht...">, <Text token: " </div> ...">, <Block token: "endfor...">, <Text token: " <div c...">, <Block token: "empty...">, <Text token: "</div> ...">, <Var token: "item.short_text...">, <Text token: "</div> ...">, <Var token: "item.title...">, <Text token: "</div> ...">]> |
token | <Block token: "block content..."> |
token_type | 2 |
/home/m/mamilo4h/django/venv_local/lib/python3.11/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=[<Text token: "...">, <Block token: "endblock...">, <Text token: "...">, <Block token: "include '_gallery.ht...">, <Text token: " </div> ...">, <Block token: "endfor...">, <Text token: " <div c...">, <Block token: "empty...">, <Text token: "</div> ...">, <Var token: "item.short_text...">, <Text token: "</div> ...">, <Var token: "item.title...">, <Text token: "</div> ...">]> |
token | <Block token: "block content..."> |
/home/m/mamilo4h/django/venv_local/lib/python3.11/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 0x7efc217313a0> |
compiled_result | <IncludeNode: template=<FilterExpression "'_breadcrumbs.html'">> |
nodelist | [<TextNode: '\n\n<div class="block">\n '>, <IncludeNode: template=<FilterExpression "'_breadcrumbs.html'">>, <TextNode: '\n <h1>Мероприятия<'>] |
parse_until | ('endblock',) |
self | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: "...">, <Block token: "include '_gallery.ht...">, <Text token: " </div> ...">, <Block token: "endfor...">, <Text token: " <div c...">, <Block token: "empty...">, <Text token: "</div> ...">, <Var token: "item.short_text...">, <Text token: "</div> ...">, <Var token: "item.title...">, <Text token: "</div> ...">]> |
token | <Block token: "for item in page_obj..."> |
token_type | 2 |
/home/m/mamilo4h/django/venv_local/lib/python3.11/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 0x7efc217313a0> |
compiled_result | <IncludeNode: template=<FilterExpression "'_breadcrumbs.html'">> |
nodelist | [<TextNode: '\n\n<div class="block">\n '>, <IncludeNode: template=<FilterExpression "'_breadcrumbs.html'">>, <TextNode: '\n <h1>Мероприятия<'>] |
parse_until | ('endblock',) |
self | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: "...">, <Block token: "include '_gallery.ht...">, <Text token: " </div> ...">, <Block token: "endfor...">, <Text token: " <div c...">, <Block token: "empty...">, <Text token: "</div> ...">, <Var token: "item.short_text...">, <Text token: "</div> ...">, <Var token: "item.title...">, <Text token: "</div> ...">]> |
token | <Block token: "for item in page_obj..."> |
token_type | 2 |
/home/m/mamilo4h/django/venv_local/lib/python3.11/site-packages/django/template/defaulttags.py
, line 853, 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', 'page_obj.object_list'] |
in_index | -2 |
invalid_chars | frozenset({'"', "'", ' ', '|'}) |
is_reversed | False |
loopvars | ['item'] |
parser | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: "...">, <Block token: "include '_gallery.ht...">, <Text token: " </div> ...">, <Block token: "endfor...">, <Text token: " <div c...">, <Block token: "empty...">, <Text token: "</div> ...">, <Var token: "item.short_text...">, <Text token: "</div> ...">, <Var token: "item.title...">, <Text token: "</div> ...">]> |
sequence | <FilterExpression 'page_obj.object_list'> |
token | <Block token: "for item in page_obj..."> |
var | 'item' |
/home/m/mamilo4h/django/venv_local/lib/python3.11/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 | 'thumbnail' |
compile_func | <function thumbnail at 0x7efc20586ac0> |
compiled_result | <ThumbnailNode> |
filter_expression | <FilterExpression 'item.link'> |
nodelist | [<TextNode: '\n <div class="'>, <IfNode>, <TextNode: '">\n <a hre'>, <Variable Node: item.link>, <TextNode: '">\n '>, <ThumbnailNode>, <TextNode: '\n\n <di'>] |
parse_until | ('empty', 'endfor') |
self | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: "...">, <Block token: "include '_gallery.ht...">, <Text token: " </div> ...">, <Block token: "endfor...">, <Text token: " <div c...">, <Block token: "empty...">, <Text token: "</div> ...">, <Var token: "item.short_text...">, <Text token: "</div> ...">, <Var token: "item.title...">, <Text token: "</div> ...">]> |
token | <Var token: "item.created_at: "%d..."> |
token_type | 1 |
var_node | <Variable Node: item.link> |
/home/m/mamilo4h/django/venv_local/lib/python3.11/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 | 'thumbnail' |
compile_func | <function thumbnail at 0x7efc20586ac0> |
compiled_result | <ThumbnailNode> |
filter_expression | <FilterExpression 'item.link'> |
nodelist | [<TextNode: '\n <div class="'>, <IfNode>, <TextNode: '">\n <a hre'>, <Variable Node: item.link>, <TextNode: '">\n '>, <ThumbnailNode>, <TextNode: '\n\n <di'>] |
parse_until | ('empty', 'endfor') |
self | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: "...">, <Block token: "include '_gallery.ht...">, <Text token: " </div> ...">, <Block token: "endfor...">, <Text token: " <div c...">, <Block token: "empty...">, <Text token: "</div> ...">, <Var token: "item.short_text...">, <Text token: "</div> ...">, <Var token: "item.title...">, <Text token: "</div> ...">]> |
token | <Var token: "item.created_at: "%d..."> |
token_type | 1 |
var_node | <Variable Node: item.link> |
/home/m/mamilo4h/django/venv_local/lib/python3.11/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=[<Text token: "...">, <Block token: "endblock...">, <Text token: "...">, <Block token: "include '_gallery.ht...">, <Text token: " </div> ...">, <Block token: "endfor...">, <Text token: " <div c...">, <Block token: "empty...">, <Text token: "</div> ...">, <Var token: "item.short_text...">, <Text token: "</div> ...">, <Var token: "item.title...">, <Text token: "</div> ...">]> |
token | 'item.created_at: "%d %B %Y"' |
/home/m/mamilo4h/django/venv_local/lib/python3.11/site-packages/django/template/base.py
, line 703, in __init__
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)
)
self.filters = filters
self.var = var_obj
Variable | Value |
---|---|
constant | None |
filters | [] |
match | <re.Match object; span=(0, 15), match='item.created_at'> |
matches | <callable_iterator object at 0x7efc204e74f0> |
parser | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: "...">, <Block token: "include '_gallery.ht...">, <Text token: " </div> ...">, <Block token: "endfor...">, <Text token: " <div c...">, <Block token: "empty...">, <Text token: "</div> ...">, <Var token: "item.short_text...">, <Text token: "</div> ...">, <Var token: "item.title...">, <Text token: "</div> ...">]> |
self | <FilterExpression 'item.created_at: "%d %B %Y"'> |
start | 0 |
token | 'item.created_at: "%d %B %Y"' |
upto | 15 |
var | 'item.created_at' |
var_obj | <Variable: 'item.created_at'> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
GEOIP_ADDR | '44.213.99.37' |
GEOIP_CONTINENT_CODE | 'NA' |
GEOIP_COUNTRY_CODE | 'US' |
GEOIP_COUNTRY_NAME | 'United States' |
GEOIP_LATITUDE | '37.75100' |
GEOIP_LONGITUDE | '-97.82200' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'xn--72-6kctvlmcyt5b5dl.xn--p1ai' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_PROTO | 'http' |
HTTP_X_REAL_IP | '44.213.99.37' |
HTTP_X_SERVER_ADDR | '45.130.41.109' |
MMDB_ADDR | '44.213.99.37' |
MMDB_INFO | 'result found' |
PASSENGER_CONNECT_PASSWORD | '********************' |
PATH_INFO | '/events/' |
PERL_USE_UNSAFE_INC | '1' |
QUERY_STRING | '' |
REMOTE_ADDR | '44.213.99.37' |
REMOTE_PORT | '41500' |
REQUEST_METHOD | 'GET' |
REQUEST_URI | '/events/' |
SCRIPT_NAME | '' |
SERVER_NAME | 'xn--72-6kctvlmcyt5b5dl.xn--p1ai' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'Apache/2.4.55 (Unix) mpm-itk/2.4.7-02 PHP/5.6.40 Phusion_Passenger/5.1.12' |
UNIQUE_ID | 'Zflt9_v6kUMglf9UbUH0IgAAAAM' |
passenger.hijack | '********************' |
wsgi.errors | <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'> |
wsgi.input | <_io.BufferedReader name=9> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
core.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/m/mamilo4h/django' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CKEDITOR_UPLOAD_PATH | 'uploads/' |
CMS_FILE_LIKE_EXTENSIONS | ['txt', 'xml', 'html'] |
CORS_ALLOWED_ORIGINS | ['http://localhost:8000', 'http://центральный72.рф', 'https://центральный72.рф'] |
CORS_ALLOW_ALL_ORIGINS | True |
CORS_ALLOW_CREDENTIALS | True |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_MASKED | 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_HEALTH_CHECKS': False, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/home/m/mamilo4h/django/db.sqlite3', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} |
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', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
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_AUTO_FIELD | 'django.db.models.AutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'sodastockonlinestore@gmail.com' |
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 | 'sodastockonlinestore@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 |
EMAIL_WITH_MESSAGES | 'desso@obl72.ru' |
EMBEDLY_KEY | '********************' |
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 | ('corsheaders', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'mptt', 'pytils', 'sorl.thumbnail', 'roxyfileman', 'advanced_staticfinder', 'ckeditor', 'ckeditor_uploader', 'widget_tweaks', 'seo', 'cms', 'common', 'company_info', 'news', 'services') |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ar-dz', 'Algerian Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('ckb', 'Central Kurdish (Sorani)'), ('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'), ('ig', 'Igbo'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('ky', 'Kyrgyz'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('ms', 'Malay'), ('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'), ('tg', 'Tajik'), ('th', 'Thai'), ('tk', 'Turkmen'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'ckb', 'fa', 'ur'] |
LANGUAGE_CODE | 'ru-ru' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/home/m/mamilo4h/django/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', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'core.urls' |
ROXY_CALC_FILEINFO | True |
ROXY_INTEGRATION | 'ckeditor' |
SECRET_KEY | '********************' |
SECRET_KEY_FALLBACKS | '********************' |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_CROSS_ORIGIN_OPENER_POLICY | 'same-origin' |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'sodastockonlinestore@gmail.com' |
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 | 'core.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 | ('/home/m/mamilo4h/django/markup',) |
STATICFILES_FINDERS | ('advanced_staticfinder.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
STATICFILES_FINDERS_IGNORE | ('jade', 'html', 'coffee', 'sass', '*.json', 'gulpfile.js') |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/m/mamilo4h/django/markup/static' |
STATIC_URL | '/static/' |
STORAGES | {'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'}, 'staticfiles': {'BACKEND': 'django.contrib.staticfiles.storage.StaticFilesStorage'}} |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/m/mamilo4h/django/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 | 'Asia/Yekaterinburg' |
USE_DEPRECATED_PYTZ | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | False |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'core.wsgi.application' |
X_FRAME_OPTIONS | 'DENY' |
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.