Negative indexing is not supported.
Request Method: | GET |
---|---|
Request URL: | http://oreshki75.ru/?page=0 |
Django Version: | 1.11.18 |
Exception Type: | AssertionError |
Exception Value: | Negative indexing is not supported. |
Exception Location: | /home/c/chitao1o/.local/lib/python3.6/site-packages/django/db/models/query.py in __getitem__, line 269 |
Python Executable: | /home/c/chitao1o/.local/bin/python3.6 |
Python Version: | 3.6.9 |
Python Path: | ['/home/c/chitao1o/oreshki75.ru/', '/home/c/chitao1o/.local/lib/python3.6/site-packages', '/home/c/chitao1o/oreshki75.ru', '/opt/passenger40/helper-scripts', '/home/c/chitao1o/.local/lib/python36.zip', '/home/c/chitao1o/.local/lib/python3.6', '/home/c/chitao1o/.local/lib/python3.6/lib-dynload', '/home/c/chitao1o/.local/lib/python3.6/site-packages'] |
Server time: | Пт, 29 Мар 2024 03:40:43 +0900 |
In template /home/c/chitao1o/oreshki75.ru/apps/core/templates/core/fullwidth.html
, error at line 58
48 | <div class=""> |
---|---|
49 | {% static_placeholder 'header' %} |
50 | {% include 'core/_navbar.html' %} |
51 | </div> |
52 | <div class="px-3 py-3 px-lg-4"> |
53 | |
54 | {% show_breadcrumb 1 'core/breadcrumb.html' %} |
55 | |
56 | <div class='app_block'> |
57 | {% block app %} |
58 | {% placeholder "content" %} |
59 | {% endblock %} |
60 | </div> |
61 | </div> |
62 | |
63 | <footer class="w-100 bg-dark p-3 text-white"> |
64 | {% static_placeholder 'footer' %} |
65 | </footer> |
66 | |
67 | |
68 | </div> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response, assigned=available_attrs(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 | AssertionError('Negative indexing is not supported.',) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f144df1e7b8>> |
request | <WSGIRequest: GET '/?page=0'> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__)
)
try:
response = response.render()
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
return response
def process_exception_by_middleware(self, exception, request):
"""
Pass the exception to the exception middleware. If no middleware
Variable | Value |
---|---|
callback | <function details at 0x7f144dd64b70> |
callback_args | () |
callback_kwargs | {'slug': ''} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f144de57860>> |
request | <WSGIRequest: GET '/?page=0'> |
resolver | <RegexURLResolver 'settings.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=cms.views.details, args=(), kwargs={'slug': ''}, url_name=pages-root, app_names=[], namespaces=[]) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f144df1e7b8> |
wrapped_callback | <function details at 0x7f144dd64b70> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
raise ValueError(
"%s.process_template_response didn't return an "
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__)
)
try:
response = response.render()...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
return response
def process_exception_by_middleware(self, exception, request):
Variable | Value |
---|---|
callback | <function details at 0x7f144dd64b70> |
callback_args | () |
callback_kwargs | {'slug': ''} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f144de57860>> |
request | <WSGIRequest: GET '/?page=0'> |
resolver | <RegexURLResolver 'settings.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=cms.views.details, args=(), kwargs={'slug': ''}, url_name=pages-root, app_names=[], namespaces=[]) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f144df1e7b8> |
wrapped_callback | <function details at 0x7f144dd64b70> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/django/template/response.py
in render
If the content has already been rendered, this is a no-op.
Returns 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/c/chitao1o/.local/lib/python3.6/site-packages/django/template/response.py
in rendered_content
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)
content = template.render(context, self._request)...
return content
def add_post_render_callback(self, callback):
"""Adds a new post-rendering callback.
If the response has already been rendered,
Variable | Value |
---|---|
context | {'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'lang': 'ru'} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7f144db08940> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/django/template/backends/django.py
in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)...
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
request | <WSGIRequest: GET '/?page=0'> |
self | <django.template.backends.django.Template object at 0x7f144db08940> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)...
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
self | <django.template.base.Template object at 0x7f144d80db70> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
self | <django.template.base.Template object at 0x7f144d80db70> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '">\n ' |
bits | ['', '\n<!doctype html>\n<html lang="ru">\n<head>\n <title>', 'Главная', ' | ДШИ №7 Орешки Чита</title>\n\n <link rel="shortcut icon" href="', '/static/core/img/logo.ico', '" type="image/x-icon">\n' ' <meta name="viewport" content="width=device-width, initial-scale=1, ' 'shrink-to-fit=no">\n' '\n' '\n' ' <link rel="stylesheet" href="', '/static/core/lib/bootstrap.min.css', '">\n' ' <link ' 'href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" ' 'rel="stylesheet"\n' ' ' 'integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" ' 'crossorigin="anonymous">\n' '\n' ' <link rel="stylesheet" href="', '/static/core/lib/pnotify.custom.min.css', '">\n\n <link rel="stylesheet" href="', '/static/core/lib/css/bvi.min.css', '">\n <link rel="stylesheet" href="', '/static/core/lib/css/bvi-font.min.css', '">\n' '\n' '\n' '\n' ' <link rel="stylesheet" ' 'href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/1.6.12/css/lightgallery.min.css"\n' ' integrity="sha256-8rfHbJr+ju3Oc099jFJMR1xAPu8CTPHU8uP5J3X/VAY=" ' 'crossorigin="anonymous"/>\n' ' <link rel="stylesheet" ' 'href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css"\n' ' integrity="sha256-UhQQ4fxEeABh4JrcmAJ1+16id/1dnlOEVCFOxDef9Lw=" ' 'crossorigin="anonymous"/>\n' ' <link rel="stylesheet" href="', '/static/core/core.css', '">\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
node | <Tag: render_block> |
self | [<django.template.defaulttags.LoadNode object at 0x7f144daa35c0>, <TextNode: '\n<!doctype html>\n<html la'>, <Block Node: title. Contents: [<Tag: page_attribute>]>, <TextNode: ' | ДШИ №7 Орешки Чита</ti'>, <django.templatetags.static.StaticNode object at 0x7f144dabafd0>, <TextNode: '" type="image/x-icon">\n '>, <django.templatetags.static.StaticNode object at 0x7f144daba128>, <TextNode: '">\n <link href="https:'>, <django.templatetags.static.StaticNode object at 0x7f144dabaf60>, <TextNode: '">\n\n <link rel="styles'>, <django.templatetags.static.StaticNode object at 0x7f144d8e1128>, <TextNode: '">\n <link rel="stylesh'>, <django.templatetags.static.StaticNode object at 0x7f144d8e1080>, <TextNode: '">\n\n\n\n <link rel="styl'>, <django.templatetags.static.StaticNode object at 0x7f144db72be0>, <TextNode: '">\n '>, <Tag: render_block>] |
/home/c/chitao1o/.local/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
self | <Tag: render_block> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/classytags/core.py
in render
"""
INTERNAL method to prepare rendering
Usually you should not override this method, but rather use render_tag.
"""
items = self.kwargs.items()
kwargs = dict([(key, value.resolve(context)) for key, value in items])
kwargs.update(self.blocks)
return self.render_tag(context, **kwargs)...
def render_tag(self, context, **kwargs):
"""
The method you should override in your custom tags
"""
raise NotImplementedError
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
items | dict_items([('name', <classytags.values.StringValue object at 0x7f144db72c18>), ('postprocessor', <TemplateConstant: None>)]) |
kwargs | {'name': 'css', 'nodelist': [<TextNode: '\n <script src="'>, <django.templatetags.static.StaticNode object at 0x7f144db72a90>, <TextNode: '"></script>\n <script t'>, <django.templatetags.static.StaticNode object at 0x7f144db72198>, <TextNode: '"></script>\n\n '>, <Tag: page_attribute>, <TextNode: '\n <meta name="descript'>, <Block Node: description. Contents: [<Tag: page_attribute>]>, <TextNode: '">\n\n <meta name="keywo'>, <Tag: page_attribute>, <TextNode: '">\n</head>\n<body>\n<!-- Вы'>, <Tag: cms_toolbar>], 'postprocessor': None} |
self | <Tag: render_block> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/sekizai/templatetags/sekizai_tags.py
in render_tag
Argument('postprocessor', required=False, default=None, resolve=False),
parser_class=SekizaiParser,
)
def render_tag(self, context, name, postprocessor, nodelist):
if not validate_context(context):
return nodelist.render(context)
rendered_contents = nodelist.render(context)...
varname = get_varname()
data = '\n'.join(context[varname][name])
if postprocessor:
func = import_processor(postprocessor)
data = func(context, data, name)
return '%s\n%s' % (data, rendered_contents)
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
name | 'css' |
nodelist | [<TextNode: '\n <script src="'>, <django.templatetags.static.StaticNode object at 0x7f144db72a90>, <TextNode: '"></script>\n <script t'>, <django.templatetags.static.StaticNode object at 0x7f144db72198>, <TextNode: '"></script>\n\n '>, <Tag: page_attribute>, <TextNode: '\n <meta name="descript'>, <Block Node: description. Contents: [<Tag: page_attribute>]>, <TextNode: '">\n\n <meta name="keywo'>, <Tag: page_attribute>, <TextNode: '">\n</head>\n<body>\n<!-- Вы'>, <Tag: cms_toolbar>] |
postprocessor | None |
self | <Tag: render_block> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('">\n' '</head>\n' '<body>\n' '<!-- Выполнил Гладких Кирилл Артурович в 2019 году -->\n' '<!-- По сотрудничеству 8-924-375-05-73 -->\n' '<!-- Или https://vk.com/glad_web_developer -->\n' '\n') |
bits | ['\n <script src="', '/static/core/lib/jq.js', '"></script>\n <script type="text/javascript" src="', '/static/core/lib/hammer.js', '"></script>\n\n ', '', '\n <meta name="description" content="', 'Официальный сайт детской школы искусств номер 7 города Чита', '">\n\n <meta name="keywords" content="', '', '">\n' '</head>\n' '<body>\n' '<!-- Выполнил Гладких Кирилл Артурович в 2019 году -->\n' '<!-- По сотрудничеству 8-924-375-05-73 -->\n' '<!-- Или https://vk.com/glad_web_developer -->\n' '\n'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
node | <Tag: cms_toolbar> |
self | [<TextNode: '\n <script src="'>, <django.templatetags.static.StaticNode object at 0x7f144db72a90>, <TextNode: '"></script>\n <script t'>, <django.templatetags.static.StaticNode object at 0x7f144db72198>, <TextNode: '"></script>\n\n '>, <Tag: page_attribute>, <TextNode: '\n <meta name="descript'>, <Block Node: description. Contents: [<Tag: page_attribute>]>, <TextNode: '">\n\n <meta name="keywo'>, <Tag: page_attribute>, <TextNode: '">\n</head>\n<body>\n<!-- Вы'>, <Tag: cms_toolbar>] |
/home/c/chitao1o/.local/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
self | <Tag: cms_toolbar> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/classytags/core.py
in render
"""
INTERNAL method to prepare rendering
Usually you should not override this method, but rather use render_tag.
"""
items = self.kwargs.items()
kwargs = dict([(key, value.resolve(context)) for key, value in items])
kwargs.update(self.blocks)
return self.render_tag(context, **kwargs)...
def render_tag(self, context, **kwargs):
"""
The method you should override in your custom tags
"""
raise NotImplementedError
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
items | dict_items([('name', <TemplateConstant: None>)]) |
kwargs | {'name': None, 'nodelist': [<TextNode: '\n\n\n<main class="wrap">\n '>, <Tag: static_placeholder>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f144daa6c18>, <TextNode: '\n </div>\n '>, <Tag: show_breadcrumb>, <TextNode: '\n\n <div cl'>, <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>, <TextNode: '\n </div>\n '>, <Tag: static_placeholder>, <TextNode: '\n </footer>\n\n\n'>, <django.templatetags.static.StaticNode object at 0x7f144d817470>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f144dab8978>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f144daa5ac8>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f144db85908>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f144db5c0f0>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f144db5c1d0>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f144d82a0f0>, <TextNode: '"></script>\n\n<script src='>, <django.templatetags.static.StaticNode object at 0x7f144d7c49e8>, <TextNode: '"></script>\n'>, <Tag: render_block>]} |
self | <Tag: cms_toolbar> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/cms/templatetags/cms_tags.py
in render_tag
return nodelist.render(context)
toolbar = get_toolbar_from_request(request)
if toolbar and toolbar.show_toolbar:
toolbar.init_toolbar(request)
return toolbar.render_with_structure(context, nodelist)
return nodelist.render(context)...
class CMSEditableObject(InclusionTag):
"""
Templatetag that links a content extracted from a generic django model
to the model admin changeform.
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
name | None |
nodelist | [<TextNode: '\n\n\n<main class="wrap">\n '>, <Tag: static_placeholder>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f144daa6c18>, <TextNode: '\n </div>\n '>, <Tag: show_breadcrumb>, <TextNode: '\n\n <div cl'>, <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>, <TextNode: '\n </div>\n '>, <Tag: static_placeholder>, <TextNode: '\n </footer>\n\n\n'>, <django.templatetags.static.StaticNode object at 0x7f144d817470>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f144dab8978>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f144daa5ac8>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f144db85908>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f144db5c0f0>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f144db5c1d0>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f144d82a0f0>, <TextNode: '"></script>\n\n<script src='>, <django.templatetags.static.StaticNode object at 0x7f144d7c49e8>, <TextNode: '"></script>\n'>, <Tag: render_block>] |
request | <WSGIRequest: GET '/?page=0'> |
self | <Tag: cms_toolbar> |
toolbar | <cms.toolbar.toolbar.CMSToolbar object at 0x7f144d893dd8> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | "\n\n <div class='app_block'>\n " |
bits | ['\n' '\n' '\n' '<main class="wrap">\n' ' <div class="container px-2 pt-1 pb-2 ten_tip_1 bg-alpha">\n' ' <div class="bg-white">\n' '\n' ' <div class="">\n' ' ', '\n' '\n' '\n' '\n' '<header class="header_logo"\n' ' style="height: 310px; background-image: ' 'url(/media/filer_public_thumbnails/filer_public/b9/cc/b9cc1fe5-575d-438e-814d-ba8ab536c1c1/bg.png__1200x1100_q85_subsampling-2.jpg)">\n' ' <div class="container">\n' ' <div class="row">\n' '\n' ' <div class="col-12 text-center col-md-6 col-xs-3">\n' ' <a href="/"> <img class="img-fluid" ' 'src="/media/filer_public_thumbnails/filer_public/23/38/23380d05-f3f7-4e28-8bd0-89d637c68d61/logopng__500x500_q85_subsampling-2.png__500x500_q85_subsampling-2.png"></a>\n' ' </div>\n' '\n' ' </div>\n' ' </div>\n' '\n' '</header><meta name="proculture-verification" ' 'content="5e66559be6d4b1679edf4100f08c55c0" />\n', '\n ', '\n' '\n' '<nav class="navbar navbar-expand-lg navbar_v_sapke p-0 ten_tip3">\n' '\n' ' <div class="bg-success w-100 d-inline-block d-lg-none text-center ">\n' ' <div style="cursor: pointer" class=" py-2 text-white d-block w-100" ' 'data-toggle="collapse" data-target="#navbarToggleExternalContent"\n' ' aria-controls="navbarToggleExternalContent" ' 'aria-expanded="false" aria-label="Toggle navigation">\n' ' <i class="fa fa-angle-double-down fa-lg"></i> Меню <i class="fa ' 'fa-angle-double-down fa-lg"></i>\n' '\n' ' </div>\n' ' </div>\n' '\n' '\n' ' <div class=" collapse bg-success navbar-collapse text-center" ' 'id="navbarToggleExternalContent">\n' ' <ul class="navbar-nav w-100 nav nav-fill" id="navAccordion">\n' ' \n' '\n' '\n' '\n' '\n' ' \n' ' <li class="child nav-item dropdown ">\n' ' <a class="nav-link dropdown-toggle text-white" href="#" ' 'id="navbarDropdown0" role="button"\n' ' data-toggle="dropdown"\n' ' aria-haspopup="true" aria-expanded="false">\n' ' Сведения об образовательной организации\n' ' </a>\n' ' <div class="dropdown-menu sub_menu" ' 'aria-labelledby="navbarDropdown0">\n' ' \n' ' <a class="dropdown-item" ' 'href="/osnovnye-svedeniya/">Основные сведения</a>\n' ' \n' ' <a class="dropdown-item" ' 'href="/struktura-organizacii-i-organy-ee-upravleniya/">Структура организации ' 'и органы ее управления</a>\n' ' \n' ' <a class="dropdown-item" ' 'href="/dokumenty_/">Документы</a>\n' ' \n' ' <a class="dropdown-item" ' 'href="/obrazovanie/">Образование</a>\n' ' \n' ' <a class="dropdown-item" ' 'href="/obrazovatelnye-standarty/">Образовательные стандарты</a>\n' ' \n' ' <a class="dropdown-item" ' 'href="/rukovodstvo-pedagogicheskij-sostav/">Руководство</a>\n' ' \n' ' <a class="dropdown-item" ' 'href="/rukovodstvo-pedagogicheskij-sostav-copy-2/">Педагогический ' 'состав</a>\n' ' \n' ' <a class="dropdown-item" ' 'href="/materialno-tehnicheskoe-obespechenie/">Материально-техническое ' 'обеспечение и оснащенность образовательного процесса. Доступная среда</a>\n' ' \n' ' <a class="dropdown-item" ' 'href="/platnye-obrazovatelnye-uslugi/">Платные образовательные услуги</a>\n' ' \n' ' <a class="dropdown-item" ' 'href="/finansovo-hozyajstvennaya-deyatelnost/">Финансово-хозяйственная ' 'деятельность</a>\n' ' \n' ' <a class="dropdown-item" ' 'href="/vakantnye-mesta-dlya-priema-perevoda-obuchayushihsya/">Вакантные ' 'места для приема (перевода) обучающихся</a>\n' ' \n' ' <a class="dropdown-item"... <trimmed 15158 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
node | <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]> |
self | [<TextNode: '\n\n\n<main class="wrap">\n '>, <Tag: static_placeholder>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f144daa6c18>, <TextNode: '\n </div>\n '>, <Tag: show_breadcrumb>, <TextNode: '\n\n <div cl'>, <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>, <TextNode: '\n </div>\n '>, <Tag: static_placeholder>, <TextNode: '\n </footer>\n\n\n'>, <django.templatetags.static.StaticNode object at 0x7f144d817470>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f144dab8978>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f144daa5ac8>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f144db85908>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f144db5c0f0>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f144db5c1d0>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f144d82a0f0>, <TextNode: '"></script>\n\n<script src='>, <django.templatetags.static.StaticNode object at 0x7f144d7c49e8>, <TextNode: '"></script>\n'>, <Tag: render_block>] |
/home/c/chitao1o/.local/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
self | <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/django/template/loader_tags.py
in render
return "<Block Node: %s. Contents: %r>" % (self.name, self.nodelist)
def render(self, context):
block_context = context.render_context.get(BLOCK_CONTEXT_KEY)
with context.push():
if block_context is None:
context['block'] = self
result = self.nodelist.render(context)...
else:
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
Variable | Value |
---|---|
block_context | None |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
self | <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n ' |
bits | ['\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
node | <Tag: placeholder> |
self | [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>] |
/home/c/chitao1o/.local/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
self | <Tag: placeholder> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/classytags/core.py
in render
"""
INTERNAL method to prepare rendering
Usually you should not override this method, but rather use render_tag.
"""
items = self.kwargs.items()
kwargs = dict([(key, value.resolve(context)) for key, value in items])
kwargs.update(self.blocks)
return self.render_tag(context, **kwargs)...
def render_tag(self, context, **kwargs):
"""
The method you should override in your custom tags
"""
raise NotImplementedError
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
items | dict_items([('name', <classytags.values.StringValue object at 0x7f144dba67b8>), ('extra_bits', <TemplateConstant: []>)]) |
kwargs | {'extra_bits': [], 'name': 'content'} |
self | <Tag: placeholder> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/cms/templatetags/cms_tags.py
in render_tag
inherit = 'inherit' in extra_bits
try:
content = renderer.render_page_placeholder(
slot=name,
context=context,
inherit=inherit,
nodelist=nodelist,...
)
except PlaceholderNotFound:
content = ''
if not content and nodelist:
return nodelist.render(context)
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
extra_bits | [] |
inherit | False |
name | 'content' |
nodelist | None |
renderer | <cms.plugin_rendering.ContentRenderer object at 0x7f144d82c0b8> |
request | <WSGIRequest: GET '/?page=0'> |
self | <Tag: placeholder> |
toolbar | <cms.toolbar.toolbar.CMSToolbar object at 0x7f144d893dd8> |
/home/c/chitao1o/.local/lib/python3.6/site-packages/cms/plugin_rendering.py
in render_page_placeholder
else:
content = self.render_placeholder(
placeholder,
context=context,
page=current_page,
editable=editable,
use_cache=True,
nodelist=None,...
)
parent_page = current_page.parent_page
should_inherit = (
inherit
and not content and parent_page
# The placeholder cache is primed when the first placeholder
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
current_page | <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00> |
editable | True |
inherit | False |
nodelist | None |
page | None |
placeholder | <cms.models.placeholdermodel.Placeholder id=3 slot='content' object at 0x7f144dbbff28> |
placeholder_cache | {2: {'content': <cms.models.placeholdermodel.Placeholder id=3 slot='content' object at 0x7f144dbbff28>}} |
self | <cms.plugin_rendering.ContentRenderer object at 0x7f144d82c0b8> |
slot | 'content' |
/home/c/chitao1o/.local/lib/python3.6/site-packages/cms/plugin_rendering.py
in render_placeholder
plugin_content = self.render_plugins(
placeholder,
language=language,
context=context,
editable=editable,
template=template,
)
placeholder_content = ''.join(plugin_content)...
if not placeholder_content and nodelist:
# should be nodelist from a template
placeholder_content = nodelist.render(context)
if use_cache:
Variable | Value |
---|---|
Watcher | <class 'sekizai.helpers.Watcher'> |
cached_value | None |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
editable | False |
language | 'ru' |
nodelist | None |
page | <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00> |
placeholder | <cms.models.placeholdermodel.Placeholder id=3 slot='content' object at 0x7f144dbbff28> |
plugin_content | <generator object ContentRenderer.render_plugins at 0x7f144d92a0a0> |
self | <cms.plugin_rendering.ContentRenderer object at 0x7f144d82c0b8> |
template | 'core/fullwidth.html' |
use_cache | False |
width | None |
/home/c/chitao1o/.local/lib/python3.6/site-packages/cms/plugin_rendering.py
in render_plugins
placeholder=placeholder,
template=template,
language=language,
)
for plugin in plugins:
plugin._placeholder_cache = placeholder
yield self.render_plugin(plugin, context, placeholder, editable)...
def _get_cached_placeholder_content(self, placeholder, language):
"""
Returns a dictionary mapping placeholder content and sekizai data.
Returns None if no cache is present.
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html'}, {'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
editable | False |
language | 'ru' |
placeholder | <cms.models.placeholdermodel.Placeholder id=3 slot='content' object at 0x7f144dbbff28> |
plugin | <cms.models.pluginmodel.CMSPlugin id=77557 plugin_type='NovostiLvPlugin' object at 0x7f144d80ad30> |
plugins | [<djangocms_bootstrap4.contrib.bootstrap4_grid.models.Bootstrap4GridRow id=77569 plugin_type='Bootstrap4GridRowPlugin' object at 0x7f144d7cc438>, <djangocms_text_ckeditor.models.Text id=77595 plugin_type='TextPlugin' object at 0x7f144d80a400>, <djangocms_bootstrap4.contrib.bootstrap4_grid.models.Bootstrap4GridRow id=77596 plugin_type='Bootstrap4GridRowPlugin' object at 0x7f144d7cc400>, <djangocms_text_ckeditor.models.Text id=77602 plugin_type='TextPlugin' object at 0x7f144d80a2e8>, <djangocms_bootstrap4.contrib.bootstrap4_grid.models.Bootstrap4GridRow id=77598 plugin_type='Bootstrap4GridRowPlugin' object at 0x7f144d7cc3c8>, <djangocms_bootstrap4.contrib.bootstrap4_grid.models.Bootstrap4GridRow id=77558 plugin_type='Bootstrap4GridRowPlugin' object at 0x7f144d7cc4a8>, <djangocms_text_ckeditor.models.Text id=77556 plugin_type='TextPlugin' object at 0x7f144d80a358>, <cms.models.pluginmodel.CMSPlugin id=77557 plugin_type='NovostiLvPlugin' object at 0x7f144d80ad30>, <djangocms_text_ckeditor.models.Text id=77568 plugin_type='TextPlugin' object at 0x7f144d80a160>, <apps.plugins.slaider_neskolkix_elementov.models.SlaiderNeskolkixElementovContainerPluginSetting id=77549 plugin_type='SlaiderNeskolkixElementovContainerPlugin' object at 0x7f144d7ba390>, <djangocms_text_ckeditor.models.Text id=77594 plugin_type='TextPlugin' object at 0x7f144d80a1d0>] |
self | <cms.plugin_rendering.ContentRenderer object at 0x7f144d82c0b8> |
template | 'core/fullwidth.html' |
/home/c/chitao1o/.local/lib/python3.6/site-packages/cms/plugin_rendering.py
in render_plugin
# we'd better pass a flat dict to template.render
# as plugin.render can return pretty much any kind of context / dictionary
# we'd better flatten it and force to a Context object
# flattening the context means that template must be an engine-specific template object
# which is guaranteed by get_cached_template if the template returned by
# plugin._get_render_template is either a string or an engine-specific template object
context = PluginContext(context, instance, placeholder)
context = plugin.render(context, instance, placeholder.slot)...
context = flatten_context(context)
template = plugin._get_render_template(context, instance, placeholder)
template = self.templates.get_cached_template(template)
content = template.render(context)
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {'True': True, 'False': False, 'None': None, 'csrf_token': <SimpleLazyObject: <function csrf.<locals>._get_val at 0x7f144db3ae18>>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f144d893f28>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f144d7c4e80>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f144da83cc0>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'SUCCESS': 25, 'WARNING': 30, 'ERROR': 40}, 'LANGUAGES': (('ru', 'ru'),), 'LANGUAGE_CODE': 'ru', 'LANGUAGE_BIDI': False, 'request': <WSGIRequest: GET '/?page=0'>, 'MEDIA_URL': '/media/', 'TIME_ZONE': 'Asia/Yakutsk', 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'STATIC_URL': '/static/', 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f144d7e1d30>, 'CMS_MEDIA_URL': '/media/cms/', 'CMS_TEMPLATE': <function cms_settings.<locals>.<lambda> at 0x7f144db38048>, 'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html', 'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
editable | False |
instance | <cms.models.pluginmodel.CMSPlugin id=77557 plugin_type='NovostiLvPlugin' object at 0x7f144d80ad30> |
placeholder | <cms.models.placeholdermodel.Placeholder id=3 slot='content' object at 0x7f144dbbff28> |
plugin | Новости |
self | <cms.plugin_rendering.ContentRenderer object at 0x7f144d82c0b8> |
/home/c/chitao1o/oreshki75.ru/apps/novosti/cms_plugins.py
in render
if page > straniz_vsego:
page = 1
start = (page-1)*kol_vo_novostei
end = page*kol_vo_novostei
novosti = novosti[start:end]...
context.update({'instance':instance, 'novosti':novosti, 'page_now':page, 'straniz_vsego':straniz_vsego})
return context
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {'True': True, 'False': False, 'None': None, 'csrf_token': <SimpleLazyObject: <function csrf.<locals>._get_val at 0x7f144db3ae18>>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f144d893f28>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f144d7c4e80>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f144da83cc0>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'SUCCESS': 25, 'WARNING': 30, 'ERROR': 40}, 'LANGUAGES': (('ru', 'ru'),), 'LANGUAGE_CODE': 'ru', 'LANGUAGE_BIDI': False, 'request': <WSGIRequest: GET '/?page=0'>, 'MEDIA_URL': '/media/', 'TIME_ZONE': 'Asia/Yakutsk', 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'STATIC_URL': '/static/', 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f144d7e1d30>, 'CMS_MEDIA_URL': '/media/cms/', 'CMS_TEMPLATE': <function cms_settings.<locals>.<lambda> at 0x7f144db38048>, 'lang': 'ru', 'current_page': <cms.models.pagemodel.Page id=2 is_draft=False object at 0x7f144db77b00>, 'has_change_permissions': False, 'has_view_permissions': True, 'meta_description': 'Главная', 'ancestors': [], 'template': 'core/breadcrumb.html', 'block': <Block Node: app. Contents: [<TextNode: '\n '>, <Tag: placeholder>, <TextNode: '\n '>]>}] |
end | 0 |
instance | <cms.models.pluginmodel.CMSPlugin id=77557 plugin_type='NovostiLvPlugin' object at 0x7f144d80ad30> |
kol_vo_novostei | 6 |
novostei_vsego | 236 |
novosti | <QuerySet [<Novost: Двигаемся вверх по «Ступенькам к успеху»!>, <Novost: Радостная новость!>, <Novost: Поздравляем!!!!>, <Novost: Международная выставка рисунков «Разноцветный мир» г. Пекин.>, <Novost: Ну какая же Масленица без блинов!>, <Novost: ВНИМАНИЕ! КОНКУРС!>, <Novost: Отчетный концерт "Я - семьЯ">, <Novost: Сегодня в нашей школе почетные гости.>, <Novost: Уроки-праздники!>, <Novost: «Классика на полчасика»>, <Novost: Отчетный концерт ДШИ № 7>, <Novost: Празднуем Сагаалган!>, <Novost: Поздравляем с праздником!>, <Novost: Мастер-класс "Пейзаж - отражение мира">, <Novost: Весёлая лягушка>, <Novost: «Фотокопия шедевра 2024»>, <Novost: Городской конкурс «Лира-2024»>, <Novost: Сольфеджиада-2024>, <Novost: Педагог – это звучит гордо!>, <Novost: ВНИМАНИЕ! КОНКУРС! "ФОТОКОПИЯ ШЕДЕВРА">, '...(remaining elements truncated)...']> |
page | 0 |
placeholder | 'content' |
self | Новости |
start | -6 |
straniz_vsego | 40 |
/home/c/chitao1o/.local/lib/python3.6/site-packages/django/db/models/query.py
in __getitem__
Retrieves an item or slice from the set of results.
"""
if not isinstance(k, (slice,) + six.integer_types):
raise TypeError
assert ((not isinstance(k, slice) and (k >= 0)) or
(isinstance(k, slice) and (k.start is None or k.start >= 0) and
(k.stop is None or k.stop >= 0))), \
"Negative indexing is not supported."...
if self._result_cache is not None:
return self._result_cache[k]
if isinstance(k, slice):
qs = self._clone()
Variable | Value |
---|---|
k | slice(-6, 0, None) |
self | <QuerySet [<Novost: Двигаемся вверх по «Ступенькам к успеху»!>, <Novost: Радостная новость!>, <Novost: Поздравляем!!!!>, <Novost: Международная выставка рисунков «Разноцветный мир» г. Пекин.>, <Novost: Ну какая же Масленица без блинов!>, <Novost: ВНИМАНИЕ! КОНКУРС!>, <Novost: Отчетный концерт "Я - семьЯ">, <Novost: Сегодня в нашей школе почетные гости.>, <Novost: Уроки-праздники!>, <Novost: «Классика на полчасика»>, <Novost: Отчетный концерт ДШИ № 7>, <Novost: Празднуем Сагаалган!>, <Novost: Поздравляем с праздником!>, <Novost: Мастер-класс "Пейзаж - отражение мира">, <Novost: Весёлая лягушка>, <Novost: «Фотокопия шедевра 2024»>, <Novost: Городской конкурс «Лира-2024»>, <Novost: Сольфеджиада-2024>, <Novost: Педагог – это звучит гордо!>, <Novost: ВНИМАНИЕ! КОНКУРС! "ФОТОКОПИЯ ШЕДЕВРА">, '...(remaining elements truncated)...']> |
AnonymousUser
Variable | Value |
---|---|
page | '0' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
DOCUMENT_ROOT | '/home/c/chitao1o/oreshki75.ru/public_html' |
GEOIP_ADDR | '18.206.160.129' |
GEOIP_CITY | 'Ashburn' |
GEOIP_CONTINENT_CODE | 'NA' |
GEOIP_COUNTRY_CODE | 'US' |
GEOIP_COUNTRY_NAME | 'United States' |
GEOIP_LATITUDE | '39.04810' |
GEOIP_LONGITUDE | '-77.47280' |
GEOIP_POSTAL_CODE | '20149' |
GEOIP_REGION | 'VA' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'oreshki75.ru' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_PROTO | 'http' |
HTTP_X_REAL_IP | '18.206.160.129' |
HTTP_X_SERVER_ADDR | '45.130.41.254' |
MMDB_ADDR | '18.206.160.129' |
MMDB_INFO | 'result found' |
PASSENGER_APP_GROUP_NAME | '/home/c/chitao1o/oreshki75.ru' |
PASSENGER_APP_ROOT | '/home/c/chitao1o/oreshki75.ru' |
PASSENGER_APP_TYPE | 'wsgi' |
PASSENGER_CONNECT_PASSWORD | 'pModFRKFFE3wh5Xn87X75OJZbOA5hTCpNh3oMDfRLFW' |
PASSENGER_DEBUGGER | 'false' |
PASSENGER_FRIENDLY_ERROR_PAGES | 'true' |
PASSENGER_GROUP | 'newcustomers' |
PASSENGER_MAX_PRELOADER_IDLE_TIME | '-1' |
PASSENGER_PYTHON | '/home/c/chitao1o/.local/bin/python3.6' |
PASSENGER_RESTART_DIR | '' |
PASSENGER_RUBY | '/opt/ruby/2.2/bin/ruby' |
PASSENGER_SHOW_VERSION_IN_HEADER | 'true' |
PASSENGER_SPAWN_METHOD | 'smart' |
PASSENGER_STATUS_LINE | 'false' |
PASSENGER_STAT_THROTTLE_RATE | '0' |
PASSENGER_USER | 'chitao1o__oreshki75dru__hp' |
PATH_INFO | '/' |
PERL_USE_UNSAFE_INC | '1' |
QUERY_STRING | 'page=0' |
REMOTE_ADDR | '127.0.0.1' |
REMOTE_PORT | '25941' |
REQUEST_METHOD | 'GET' |
REQUEST_URI | '/?page=0' |
SCRIPT_NAME | '' |
SERVER_ADDR | '127.56.102.2' |
SERVER_ADMIN | 'webmaster@oreshki75.ru' |
SERVER_NAME | 'oreshki75.ru' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'Apache/2.4.55 (Unix)' |
UNIQUE_ID | 'ZgW5qpDK8yJaEAVsiNkONgAAAAU' |
passenger.hijack | None |
wsgi.errors | <_io.TextIOWrapper name='<stderr>' mode='w' encoding='ANSI_X3.4-1968'> |
wsgi.input | <_io.BufferedReader name=13> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
settings.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/c/chitao1o/oreshki75.ru' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CMS_LANGUAGES | {1: [{'code': 'ru', 'fallbacks': [], 'hide_untranslated': False, 'name': 'ru', 'public': True, 'redirect_on_fallback': True}], 'default': {'hide_untranslated': False, 'public': True, 'redirect_on_fallback': True}, <class 'cms.utils.conf.VERIFIED'>: True} |
CMS_PERMISSION | True |
CMS_PLACEHOLDER_CONF | {} |
CMS_TEMPLATES | (('core/fullwidth.html', 'Базовый'),) |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': 'localhost', 'NAME': '/home/c/chitao1o/oreshki75.ru/files/project.db', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} |
DATABASE_ROUTERS | [] |
DATA_DIR | '/home/c/chitao1o/oreshki75.ru' |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
DJANGOCMS_BOOTSTRAP4_CAROUSEL_ASPECT_RATIOS | ((16, 9),) |
DJANGOCMS_BOOTSTRAP4_CAROUSEL_TEMPLATES | (('default', 'По умолчанию'),) |
DJANGOCMS_BOOTSTRAP4_COLOR_STYLE_CHOICES | (('primary', 'Primary'), ('secondary', 'Secondary'), ('success', 'Success'), ('danger', 'Danger'), ('warning', 'Warning'), ('info', 'Info'), ('light', 'Light'), ('dark', 'Dark'), ('custom', 'Custom')) |
DJANGOCMS_BOOTSTRAP4_GRID_COLUMN_CHOICES | (('col', 'Столбец'), ('w-100', 'Полная ширина'), ('', 'Пустая')) |
DJANGOCMS_BOOTSTRAP4_GRID_CONTAINERS | (('container', 'Контейнер'), ('container-fluid', 'Полноэкранный контейнер')) |
DJANGOCMS_BOOTSTRAP4_GRID_SIZE | 12 |
DJANGOCMS_BOOTSTRAP4_SPACER_SIZES | (('0', '* 0'), ('1', '* .25'), ('2', '* .5'), ('3', '* 1'), ('4', '* 1.5'), ('5', '* 3')) |
DJANGOCMS_BOOTSTRAP4_TAB_TEMPLATES | (('default', 'По умолчанию'),) |
DJANGOCMS_BOOTSTRAP4_TAG_CHOICES | ['div', 'section', 'article', 'header', 'footer', 'aside'] |
DJANGOCMS_BOOTSTRAP4_USE_ICONS | True |
DJANGOCMS_ICON_SETS | [('fontawesome5', 'fa', 'Font Awesome'), ('materialdesign', 'zmdi', 'Material Design')] |
DJANGOCMS_ICON_TEMPLATES | [('svg', 'SVG template')] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.gmail.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'gladwebdeveloper@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 |
FILER_IMAGE_MODEL | 'filer.Image' |
FILE_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
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 | ('djangocms_admin_style', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.admin', 'django.contrib.sites', 'django.contrib.sitemaps', 'django.contrib.staticfiles', 'django.contrib.messages', 'cms', 'menus', 'sekizai', 'treebeard', 'djangocms_text_ckeditor', 'filer', 'easy_thumbnails', 'djangocms_column', 'djangocms_file', 'djangocms_link', 'djangocms_style', 'djangocms_snippet', 'djangocms_googlemap', 'djangocms_video', 'djangocms_icon', 'djangocms_picture', 'djangocms_bootstrap4', 'djangocms_bootstrap4.contrib.bootstrap4_alerts', 'djangocms_bootstrap4.contrib.bootstrap4_badge', 'djangocms_bootstrap4.contrib.bootstrap4_card', 'djangocms_bootstrap4.contrib.bootstrap4_carousel', 'djangocms_bootstrap4.contrib.bootstrap4_collapse', 'djangocms_bootstrap4.contrib.bootstrap4_content', 'djangocms_bootstrap4.contrib.bootstrap4_grid', 'djangocms_bootstrap4.contrib.bootstrap4_jumbotron', 'djangocms_bootstrap4.contrib.bootstrap4_link', 'djangocms_bootstrap4.contrib.bootstrap4_listgroup', 'djangocms_bootstrap4.contrib.bootstrap4_media', 'djangocms_bootstrap4.contrib.bootstrap4_picture', 'djangocms_bootstrap4.contrib.bootstrap4_tabs', 'djangocms_bootstrap4.contrib.bootstrap4_utilities', 'apps.core', 'apps.plugins.headers_logo', 'apps.plugins.backround_fon_saita', 'apps.plugins.kadri', 'apps.plugins.foto_albom', 'apps.plugins.slaider_neskolkix_elementov', 'apps.plugins.youtube_video', 'apps.novosti') |
INTERNAL_IPS | [] |
LANGUAGES | (('ru', 'ru'),) |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'ru' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/home/c/chitao1o/oreshki75.ru/files/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ('cms.middleware.utils.ApphookReloadMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language.LanguageCookieMiddleware') |
MIDDLEWARE_CLASSES | ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NAPRAVLENIA_VIRAVNIVANIE | (('top', 'По верхнему краю'), ('right', 'По правому краю'), ('bottom', 'По нижнему краю краю'), ('left', 'По левому краю'), ('center', 'По центру краю')) |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'settings.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_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 | 'settings.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/c/chitao1o/oreshki75.ru/files/static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/c/chitao1o/oreshki75.ru/apps/core/templates'], 'OPTIONS': {'context_processors': ['django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'django.template.context_processors.i18n', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.media', 'django.template.context_processors.csrf', 'django.template.context_processors.tz', 'sekizai.context_processors.sekizai', 'django.template.context_processors.static', 'cms.context_processors.cms_settings'], 'loaders': ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', 'django.template.loaders.eggs.Loader']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
THUMBNAIL_PROCESSORS | ('easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.autocrop', 'filer.thumbnail_processors.scale_and_crop_with_subject_location', 'easy_thumbnails.processors.filters') |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Asia/Yakutsk' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | True |
USE_TZ | False |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | None |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.