(1242, 'Subquery returns more than 1 row')
Request Method: | GET |
---|---|
Request URL: | https://lacode.ru/blog/narashivanie-resnic-plyusy-i-minusy/ |
Django Version: | 1.11.10 |
Exception Type: | OperationalError |
Exception Value: | (1242, 'Subquery returns more than 1 row') |
Exception Location: | /usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py in execute_sql, line 899 |
Python Executable: | /usr/local/bin/uwsgi |
Python Version: | 2.7.18 |
Python Path: | ['/var/www/lacode/', '.', '', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages', '/var/www/lacode/lacode/settings/..', '/var/www/lacode/lacode/settings/../apps', '/var/www/lacode/lacode/settings/../external_apps'] |
Server time: | Вт, 19 Мар 2024 02:55:09 +0000 |
In template /var/www/lacode/lacode/templates/base.html
, error at line 83
73 | </div> |
---|---|
74 | </div> |
75 | {% endif %} |
76 | |
77 | <div class="menu_container"> |
78 | <ul class="top_nav"> |
79 | <!--<li class="add_code"><a href="#">Добавить промо-код</a></li>--> |
80 | <li><a href="{% url 'coupons:coupons' %}">Промокоды и скидки</a></li> |
81 | <li><a href="{% url 'coupons:shops' %}">Все магазины</a></li> |
82 | <li><a href="{% url 'coupons:shops_rating' %}">Рейтинг магазинов</a></li> |
83 | <li><a href="{% url 'coupons:category_comments' %}">Отзывы</a></li> |
84 | <li><a href="{% url 'coupons:day_actions' %}">Товары дня</a></li> |
85 | <li><a href="{% url 'blog:index' %}">Блог</a></li> |
86 | </ul><!-- END top_nav --> |
87 | </div><!-- END menu_container --> |
88 | |
89 | <div class="header"> |
90 | <div class="logo" itemscope itemtype="https://schema.org/CreativeWork"> |
91 | <img src="{% static 'main/images/logo.png' %}" width="149" height="46" itemprop="logo" /> |
92 | <a href="/" itemprop="name"><span></span>LaCode</a> |
93 | </div> |
/usr/local/lib/python2.7/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 | OperationalError(1242, 'Subquery returns more than 1 row') |
get_response | <bound method WSGIHandler._legacy_get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fa10357d290>> |
request | <WSGIRequest: GET '/blog/narashivanie-resnic-plyusy-i-minusy/'> |
/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py
in _legacy_get_response
# Apply request middleware
for middleware_method in self._request_middleware:
response = middleware_method(request)
if response:
break
if response is None:
response = self._get_response(request)...
return response
Variable | Value |
---|---|
middleware_method | <bound method MessageMiddleware.process_request of <django.contrib.messages.middleware.MessageMiddleware object at 0x7fa100a33e10>> |
request | <WSGIRequest: GET '/blog/narashivanie-resnic-plyusy-i-minusy/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fa10357d290> |
/usr/local/lib/python2.7/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 BlogListView at 0x7fa10084fd50> |
callback_args | () |
callback_kwargs | {'slug': u'narashivanie-resnic-plyusy-i-minusy'} |
e | OperationalError(1242, 'Subquery returns more than 1 row') |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fa100a2af50>> |
request | <WSGIRequest: GET '/blog/narashivanie-resnic-plyusy-i-minusy/'> |
resolver | <RegexURLResolver 'lacode.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=blog.views.BlogListView, args=(), kwargs={'slug': u'narashivanie-resnic-plyusy-i-minusy'}, url_name=index, app_names=[], namespaces=['blog']) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fa10357d290> |
wrapped_callback | <function BlogListView at 0x7fa10084fd50> |
/usr/local/lib/python2.7/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 BlogListView at 0x7fa10084fd50> |
callback_args | () |
callback_kwargs | {'slug': u'narashivanie-resnic-plyusy-i-minusy'} |
e | OperationalError(1242, 'Subquery returns more than 1 row') |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fa100a2af50>> |
request | <WSGIRequest: GET '/blog/narashivanie-resnic-plyusy-i-minusy/'> |
resolver | <RegexURLResolver 'lacode.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=blog.views.BlogListView, args=(), kwargs={'slug': u'narashivanie-resnic-plyusy-i-minusy'}, url_name=index, app_names=[], namespaces=['blog']) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fa10357d290> |
wrapped_callback | <function BlogListView at 0x7fa10084fd50> |
/usr/local/lib/python2.7/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"> |
/usr/local/lib/python2.7/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 | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7fa0fef16b90> |
/usr/local/lib/python2.7/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 | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
request | <WSGIRequest: GET '/blog/narashivanie-resnic-plyusy-i-minusy/'> |
self | <django.template.backends.django.Template object at 0x7fa0fef16b90> |
/usr/local/lib/python2.7/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 | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
self | <django.template.base.Template object at 0x7fa0ffd33050> |
/usr/local/lib/python2.7/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 | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
self | <django.template.base.Template object at 0x7fa0ffd33050> |
/usr/local/lib/python2.7/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 |
---|---|
bits | [] |
context | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
/usr/local/lib/python2.7/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 | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
e | OperationalError(1242, 'Subquery returns more than 1 row') |
self | <ExtendsNode: extends "base.html"> |
/usr/local/lib/python2.7/site-packages/django/template/loader_tags.py
in render
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)...
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7fa0ff70fd90> |
blocks | {u'body_class': <Block Node: body_class. Contents: []>, u'content': <Block Node: content. Contents: []>, u'extra_media': <Block Node: extra_media. Contents: [<TextNode: u'<link rel="canonical" hre'>, <Variable Node: SITE_URL>, <Variable Node: request.path>, <TextNode: u'">'>]>, u'meta_description': <Block Node: meta_description. Contents: []>, u'meta_keywords': <Block Node: meta_keywords. Contents: []>, u'title': <Block Node: title. Contents: []>, u'under_content': <Block Node: under_content. Contents: []>} |
compiled_parent | <django.template.base.Template object at 0x7fa0ffa9f290> |
context | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
node | <django.template.defaulttags.LoadNode object at 0x7fa0ff53d690> |
self | <ExtendsNode: extends "base.html"> |
/usr/local/lib/python2.7/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 | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
self | <django.template.base.Template object at 0x7fa0ffa9f290> |
/usr/local/lib/python2.7/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 | u'\n\n <div class="wrapper">\n ' |
bits | [u'<!DOCTYPE html>', u'', u'\n<html>\n<head>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <link href="', u'/static/main/css/style.css', u'?v=1.0.8" rel="stylesheet" type="text/css" />\n <link href="', u'/static/main/css/style_mob.css', u'?v=1.0.3" media="only screen and (max-width: 960px)" rel="stylesheet" />\n <link rel="shortcut icon" href="', u'/static/main/images/favicon.png', u'">\n <!--[if IE 8]><link href="', u'/static/main/css/ie8.css', u'" rel="stylesheet" type="text/css" /><![endif]-->\n <meta name="keywords" content="', u'', u'">\n <meta name="description" content="', u'\n \u041d\u0430\u0440\u0430\u0449\u0438\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0441\u043d\u0438\u0446: \u043f\u043b\u044e\u0441\u044b \u0438 \u043c\u0438\u043d\u0443\u0441\u044b. \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u0441\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043c\u044b \u0441\u043b\u044b\u0448\u0438\u043c \u043e \u043d\u0430\u0440\u0430\u0449\u0438\u0432\u0430\u043d\u0438\u0438 \u0440\u0435\u0441\u043d\u0438\u0446. \u043d\u0430 Lacode.ru\n', u'">\n <script src="', u'/static/main/js/jquery.1.9.1.min.js', u'"></script>\n <script src="', u'/static/main/js/jquery.clipboard.js', u'"></script>\n <script src="', u'/static/main/js/jquery.bxslider.min.js', u'"></script>\n <script src="', u'/static/main/js/jquery.roundabout.js', u'"></script>\n <script src="', u'/static/main/js/jquery.slides.min.js', u'"></script>\n <!--[if IE 8]><script src="', u'/static/main/js/placeholder.js', u'"></script><![endif]-->\n\n <script>\n var csrf_token = \'', u'EpRPVrOxb6nAZ3qUr6jHPi28wlycGj8eIei2nkGaN6AS3Uq3fk9SJqMJO5vbHhhE', u'\',\n update_main_promocodes = "', u'/ajax/update_main_promocodes/', u'",\n update_main_shops = "', u'/ajax/update_main_shops/', u'",\n comment_vote_url = "', u'/ajax/comment_vote/', u'",\n shop_vote = "', u'/ajax/shop_vote/', u'",\n popup_prefix = "?promocode=";\n </script>\n <script src="', u'/static/main/js/scripts.js', u'"></script>\n ', u'\n <script src="/static/main/js/masonry.pkgd.min.js" type="text/javascript"></script>\n <!-- fancybox -->\n <link rel="stylesheet" type="text/css" href="/static/main/js/fancybox/jquery.fancybox.css" media="screen" />\n <script src="/static/main/js/fancybox/jquery.fancybox.js" type="text/javascript"></script>\n <!-- /fancybox -->\n <script>\n var blog_post_vote = "/blog/ajax/post_vote/";\n </script>\n <script src="/static/main/js/post.js" type="text/javascript"></script>\n <link rel="canonical" href="https://lacode.ru/blog/narashivanie-resnic-plyusy-i-minusy/">\n', u'\n <title>', u'\u041d\u0430\u0440\u0430\u0449\u0438\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0441\u043d\u0438\u0446: \u043f\u043b\u044e\u0441\u044b \u0438 \u043c\u0438\u043d\u0443\u0441\u044b', u'</title>\n\n <!-- Yandex.RTB Start -->\n <script>window.yaContextCb=window.yaContextCb||[]</script>\n <script src="https://yandex.ru/ads/system/context.js" async></script>\n <!-- Yandex.RTB Finish -->\n\n</head>\n<body ', u' class="blog_page"', u'>\n\n <a href="#toTop" class="to_top">\u041d\u0430\u0432\u0435\u0440\u0445</a>\n\n <!-- mobile menu -->\n <div class="mob_menu">\n <a href="', u'/', u'" class="logo"></a>\n <span class="menu_btn"></span>\n <ul>\n <li>\n <form class="search_form" action="', u'/search/', u'">\n <input type="text" name="q" placeholder="\u041f\u043e\u0438\u0441\u043a" value="', u'', u'" />\n </form><!-- END search_form -->\n </li>\n <li><a href="', u'/promokodu/', u'"><span>\u041f\u0440\u043e\u043c\u043e\u043a\u043e\u0434\u044b \u0438 \u0441\u043a\u0438\u0434\u043a\u0438</span></a></li>\n <li><a href="', u'/magazinu/', u'"><span>\u0412\u0441\u0435 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0... <trimmed 6671 bytes string> |
context | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
node | <Block Node: content. Contents: []> |
self | [<TextNode: u'<!DOCTYPE html>'>, <django.template.defaulttags.LoadNode object at 0x7fa0ff53d690>, <TextNode: u'\n<html>\n<head>\n <meta '>, <django.templatetags.static.StaticNode object at 0x7fa0ff53dd10>, <TextNode: u'?v=1.0.8" rel="stylesheet'>, <django.templatetags.static.StaticNode object at 0x7fa0ff4a9290>, <TextNode: u'?v=1.0.3" media="only scr'>, <django.templatetags.static.StaticNode object at 0x7fa0ff4a9ed0>, <TextNode: u'">\n <!--[if IE 8]><lin'>, <django.templatetags.static.StaticNode object at 0x7fa0ff4a9e90>, <TextNode: u'" rel="stylesheet" type="'>, <Block Node: meta_keywords. Contents: []>, <TextNode: u'">\n <meta name="descri'>, <Block Node: meta_description. Contents: []>, <TextNode: u'">\n <script src="'>, <django.templatetags.static.StaticNode object at 0x7fa0ff4a9b50>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7fa0ff4a9c90>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7fa0ff4a9dd0>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7fa0ff4a9490>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7fa0ff4a9750>, <TextNode: u'"></script>\n <!--[if I'>, <django.templatetags.static.StaticNode object at 0x7fa0ff4a9c50>, <TextNode: u'"></script><![endif]-->\n\n'>, <Variable Node: csrf_token>, <TextNode: u"',\n update_mai">, <django.template.defaulttags.URLNode object at 0x7fa0ff4a9850>, <TextNode: u'",\n update_mai'>, <django.template.defaulttags.URLNode object at 0x7fa0ff4a9190>, <TextNode: u'",\n comment_vo'>, <django.template.defaulttags.URLNode object at 0x7fa0ff4a97d0>, <TextNode: u'",\n shop_vote '>, <django.template.defaulttags.URLNode object at 0x7fa0ff4a9790>, <TextNode: u'",\n popup_pref'>, <django.templatetags.static.StaticNode object at 0x7fa0ff4a9810>, <TextNode: u'"></script>\n '>, <Block Node: extra_media. Contents: [<TextNode: u'<link rel="canonical" hre'>, <Variable Node: SITE_URL>, <Variable Node: request.path>, <TextNode: u'">'>]>, <TextNode: u'\n <title>'>, <Block Node: title. Contents: []>, <TextNode: u'</title>\n\n <!-- Yandex'>, <Block Node: body_class. Contents: []>, <TextNode: u'>\n\n <a href="#toTop" c'>, <django.template.defaulttags.URLNode object at 0x7fa0ffdbd390>, <TextNode: u'" class="logo"></a>\n '>, <django.template.defaulttags.URLNode object at 0x7fa0ffdbdf50>, <TextNode: u'">\n <i'>, <IfNode>, <TextNode: u'" />\n </fo'>, <django.template.defaulttags.URLNode object at 0x7fa0ffdbd890>, <TextNode: u'"><span>\u041f\u0440\u043e\u043c\u043e\u043a\u043e\u0434\u044b \u0438 \u0441\u043a\u0438\u0434\u043a'>, <django.template.defaulttags.URLNode object at 0x7fa10093cc10>, <TextNode: u'"><span>\u0412\u0441\u0435 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u044b</spa'>, <django.template.defaulttags.URLNode object at 0x7fa10093cd10>, <TextNode: u'"><span>\u0420\u0435\u0439\u0442\u0438\u043d\u0433 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u043e\u0432'>, <django.template.defaulttags.URLNode object at 0x7fa10093ce50>, <TextNode: u'"><span>\u041e\u0442\u0437\u044b\u0432\u044b</span></a>'>, <django.template.defaulttags.URLNode object at 0x7fa10093cc50>, <TextNode: u'"><span>\u0422\u043e\u0432\u0430\u0440\u044b \u0434\u043d\u044f</span>'>, <django.template.defaulttags.URLNode object at 0x7fa10093cd90>, <TextNode: u'"><span>\u0411\u043b\u043e\u0433</span></a></'>, <IfNode>, <TextNode: u'\n\n <div class="menu_co'>, <django.template.defaulttags.URLNode object at 0x7fa0ff953950>, <TextNode: u'">\u041f\u0440\u043e\u043c\u043e\u043a\u043e\u0434\u044b \u0438 \u0441\u043a\u0438\u0434\u043a\u0438</a><'>, <django.template.defaulttags.URLNode object at 0x7fa0ff953710>, <TextNode: u'">\u0412\u0441\u0435 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u044b</a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7fa0ff953a90>, ... <trimmed 6399 bytes string> |
/usr/local/lib/python2.7/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 | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
e | OperationalError(1242, 'Subquery returns more than 1 row') |
self | <Block Node: content. Contents: []> |
/usr/local/lib/python2.7/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)...
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: content. Contents: [<TextNode: u'\n <p class="breadcrumb'>, <django.template.defaulttags.URLNode object at 0x7fa0ff497e50>, <TextNode: u'">\u0411\u043b\u043e\u0433</a>\n </p>\n <'>, <Variable Node: post.slug>, <TextNode: u'">\n <h1 class='>, <Variable Node: post.name>, <TextNode: u'</h1>\n <div cl'>, <Variable Node: post.created_at|date:"c">, <TextNode: u'">'>, <Variable Node: post.created_at|date:"d.m.Y">, <TextNode: u'</span>\n '>, <For Node: for category in post.categories.all, tail_len: 7>, <TextNode: u'\n </div><!-- E'>, <IfNode>, <TextNode: u'>'>, <Variable Node: post.rating>, <TextNode: u'</span>\n '>, <IfNode>, <TextNode: u'\n </div><!-- E'>, <Variable Node: MEDIA_URL>, <Variable Node: post.image>, <TextNode: u'" alt="'>, <Variable Node: post.name>, <TextNode: u'" title="'>, <Variable Node: post.name>, <TextNode: u'" itemprop="image" />\n\n '>, <Variable Node: post.short_description|safe>, <TextNode: u'</div>\n <d'>, <Variable Node: post.description|safe>, <TextNode: u'</div>\n\n '>, <IfNode>, <TextNode: u'\n </div>\n '>, <IfNode>, <TextNode: u'\n\n '>, <IfNode>, <TextNode: u'\n\n '>, <IfNode>, <TextNode: u'\n </div>\n\n '>, <IfNode>, <TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7fa1036803d0>, <TextNode: u'\n\n '>, <IfNode>, <TextNode: u'\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7fa0ff70fd90> |
context | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
push | <Block Node: content. Contents: [<TextNode: u'\n <p class="breadcrumb'>, <django.template.defaulttags.URLNode object at 0x7fa0ff497e50>, <TextNode: u'">\u0411\u043b\u043e\u0433</a>\n </p>\n <'>, <Variable Node: post.slug>, <TextNode: u'">\n <h1 class='>, <Variable Node: post.name>, <TextNode: u'</h1>\n <div cl'>, <Variable Node: post.created_at|date:"c">, <TextNode: u'">'>, <Variable Node: post.created_at|date:"d.m.Y">, <TextNode: u'</span>\n '>, <For Node: for category in post.categories.all, tail_len: 7>, <TextNode: u'\n </div><!-- E'>, <IfNode>, <TextNode: u'>'>, <Variable Node: post.rating>, <TextNode: u'</span>\n '>, <IfNode>, <TextNode: u'\n </div><!-- E'>, <Variable Node: MEDIA_URL>, <Variable Node: post.image>, <TextNode: u'" alt="'>, <Variable Node: post.name>, <TextNode: u'" title="'>, <Variable Node: post.name>, <TextNode: u'" itemprop="image" />\n\n '>, <Variable Node: post.short_description|safe>, <TextNode: u'</div>\n <d'>, <Variable Node: post.description|safe>, <TextNode: u'</div>\n\n '>, <IfNode>, <TextNode: u'\n </div>\n '>, <IfNode>, <TextNode: u'\n\n '>, <IfNode>, <TextNode: u'\n\n '>, <IfNode>, <TextNode: u'\n </div>\n\n '>, <IfNode>, <TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7fa1036803d0>, <TextNode: u'\n\n '>, <IfNode>, <TextNode: u'\n'>]> |
self | <Block Node: content. Contents: []> |
/usr/local/lib/python2.7/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 | u'\n\n ' |
bits | [u'\n <p class="breadcrumbs final">\n <a href="/">\u0413\u043b\u0430\u0432\u043d\u0430\u044f</a>\n <a href="', u'/blog/', u'">\u0411\u043b\u043e\u0433</a>\n </p>\n <div class="content">\n <div class="post" itemscope itemtype="https://schema.org/Article" data-slug="', u'narashivanie-resnic-plyusy-i-minusy', u'">\n <h1 class="post_title" itemprop="name">', u'\u041d\u0430\u0440\u0430\u0449\u0438\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0441\u043d\u0438\u0446: \u043f\u043b\u044e\u0441\u044b \u0438 \u043c\u0438\u043d\u0443\u0441\u044b', u'</h1>\n <div class="post_info">\n <span datetime="', u'2018-01-23T17:53:12+00:00', u'">', u'23.01.2018', u'</span>\n ', u'\n <a href="/blog/fashion-and-style/">\u041c\u043e\u0434\u0430 \u0438 \u0441\u0442\u0438\u043b\u044c</a>, \n \n <a href="/blog/sovety/">\u0421\u043e\u0432\u0435\u0442\u044b </a>\n ', u'\n </div><!-- END post_info -->\n <div class="rating">\n <span', u'', u'>', u'11', u'</span>\n ', u'\n <a href="#plu" class="plus"></a>\n <a href="#minus" class="minus"></a>\n ', u'\n </div><!-- END rating -->\n <img src="', u'/media/', u'posts/narashivanie-resnic-plyusy-i-minusy.jpg', u'" alt="', u'\u041d\u0430\u0440\u0430\u0449\u0438\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0441\u043d\u0438\u0446: \u043f\u043b\u044e\u0441\u044b \u0438 \u043c\u0438\u043d\u0443\u0441\u044b', u'" title="', u'\u041d\u0430\u0440\u0430\u0449\u0438\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0441\u043d\u0438\u0446: \u043f\u043b\u044e\u0441\u044b \u0438 \u043c\u0438\u043d\u0443\u0441\u044b', u'" itemprop="image" />\n\n <div itemprop="text" class="post_details_text gray_text wysiwyg">\n <div>', u'<p>\u041d\u0435\u0442 \u0442\u0430\u043a\u043e\u0439 \u0434\u0435\u0432\u0443\u0448\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0435 \u043c\u0435\u0447\u0442\u0430\u043b\u0430 \u0431\u044b \u043e \u0434\u043b\u0438\u043d\u043d\u044b\u0445 \u0438 \u0433\u0443\u0441\u0442\u044b\u0445 \u0440\u0435\u0441\u043d\u0438\u0446\u0430\u0445. \u0421\u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043d\u043e \u043a\u043e\u0441\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432, \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e\u0431\u044b \u0433\u043b\u0430\u0437\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u043d\u043e \u0438 \u044f\u0440\u043a\u043e. \u041d\u0443 \u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u043c\u043e\u0434\u043d\u0430\u044f \u0438\u043d\u0434\u0443\u0441\u0442\u0440\u0438\u044f \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043f\u0440\u043e\u0441 \u0440\u043e\u0436\u0434\u0430\u0435\u0442 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435. </p>', u'</div>\n <div>', u'<p>\u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u0441\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043c\u044b \u0441\u043b\u044b\u0448\u0438\u043c \u043e \u043d\u0430\u0440\u0430\u0449\u0438\u0432\u0430\u043d\u0438\u0438 \u0440\u0435\u0441\u043d\u0438\u0446. \u0418 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043b\u044b\u0448\u0438\u043c, \u0430 \u0434\u0430\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0439 \u0438 \u0441\u043e\u0442\u043d\u0438 \u0434\u0435\u0432\u0443\u0448\u0435\u043a \u043f\u0440\u0438\u0431\u0435\u0433\u0430\u044e\u0442 \u043... <trimmed 44877 bytes string> |
context | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
node | <IfNode> |
self | [<TextNode: u'\n <p class="breadcrumb'>, <django.template.defaulttags.URLNode object at 0x7fa0ff497e50>, <TextNode: u'">\u0411\u043b\u043e\u0433</a>\n </p>\n <'>, <Variable Node: post.slug>, <TextNode: u'">\n <h1 class='>, <Variable Node: post.name>, <TextNode: u'</h1>\n <div cl'>, <Variable Node: post.created_at|date:"c">, <TextNode: u'">'>, <Variable Node: post.created_at|date:"d.m.Y">, <TextNode: u'</span>\n '>, <For Node: for category in post.categories.all, tail_len: 7>, <TextNode: u'\n </div><!-- E'>, <IfNode>, <TextNode: u'>'>, <Variable Node: post.rating>, <TextNode: u'</span>\n '>, <IfNode>, <TextNode: u'\n </div><!-- E'>, <Variable Node: MEDIA_URL>, <Variable Node: post.image>, <TextNode: u'" alt="'>, <Variable Node: post.name>, <TextNode: u'" title="'>, <Variable Node: post.name>, <TextNode: u'" itemprop="image" />\n\n '>, <Variable Node: post.short_description|safe>, <TextNode: u'</div>\n <d'>, <Variable Node: post.description|safe>, <TextNode: u'</div>\n\n '>, <IfNode>, <TextNode: u'\n </div>\n '>, <IfNode>, <TextNode: u'\n\n '>, <IfNode>, <TextNode: u'\n\n '>, <IfNode>, <TextNode: u'\n </div>\n\n '>, <IfNode>, <TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7fa1036803d0>, <TextNode: u'\n\n '>, <IfNode>, <TextNode: u'\n'>] |
/usr/local/lib/python2.7/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 | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
e | OperationalError(1242, 'Subquery returns more than 1 row') |
self | <IfNode> |
/usr/local/lib/python2.7/site-packages/django/template/defaulttags.py
in render
try:
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:...
return nodelist.render(context)
return ''
class LoremNode(Node):
Variable | Value |
---|---|
condition | (literal <django.template.base.FilterExpression object at 0x7fa0ff49df90>) |
context | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
match | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
nodelist | [<TextNode: u'\n <h2 class="post_'>, <django.template.defaulttags.URLNode object at 0x7fa0ff49db10>, <TextNode: u'">\u0432\u0441\u0435 \u043d\u043e\u0432\u043e\u0441\u0442\u0438</a></h2>\n '>, <For Node: for post in related_posts, tail_len: 3>, <TextNode: u'\n <div class="clea'>] |
self | <IfNode> |
/usr/local/lib/python2.7/site-packages/django/db/models/query.py
in __nonzero__
return iter(self._result_cache)
def __bool__(self):
self._fetch_all()
return bool(self._result_cache)
def __nonzero__(self): # Python 2 compatibility
return type(self).__bool__(self)...
def __getitem__(self, k):
"""
Retrieves an item or slice from the set of results.
"""
if not isinstance(k, (slice,) + six.integer_types):
Variable | Value |
---|---|
self | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
/usr/local/lib/python2.7/site-packages/django/db/models/query.py
in __bool__
3. self.iterator()
- Responsible for turning the rows into model objects.
"""
self._fetch_all()
return iter(self._result_cache)
def __bool__(self):
self._fetch_all()...
return bool(self._result_cache)
def __nonzero__(self): # Python 2 compatibility
return type(self).__bool__(self)
def __getitem__(self, k):
Variable | Value |
---|---|
self | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
/usr/local/lib/python2.7/site-packages/django/db/models/query.py
in _fetch_all
clone._fields = self._fields
clone.__dict__.update(kwargs)
return clone
def _fetch_all(self):
if self._result_cache is None:
self._result_cache = list(self._iterable_class(self))...
if self._prefetch_related_lookups and not self._prefetch_done:
self._prefetch_related_objects()
def _next_is_sticky(self):
"""
Indicates that the next filter call and the one following that should
Variable | Value |
---|---|
self | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
/usr/local/lib/python2.7/site-packages/django/db/models/query.py
in __iter__
def __iter__(self):
queryset = self.queryset
db = queryset.db
compiler = queryset.query.get_compiler(using=db)
# Execute the query. This will also fill compiler.select, klass_info,
# and annotations.
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch)...
select, klass_info, annotation_col_map = (compiler.select, compiler.klass_info,
compiler.annotation_col_map)
model_cls = klass_info['model']
select_fields = klass_info['select_fields']
model_fields_start, model_fields_end = select_fields[0], select_fields[-1] + 1
init_list = [f[0].target.attname
Variable | Value |
---|---|
compiler | <django.db.backends.mysql.compiler.SQLCompiler object at 0x7fa0ff1c0790> |
db | 'default' |
queryset | Error in formatting: OperationalError: (1242, 'Subquery returns more than 1 row') |
self | <django.db.models.query.ModelIterable object at 0x7fa0ffa9f610> |
/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py
in execute_sql
# Might fail for server-side cursors (e.g. connection closed)
cursor.close()
except Exception:
# Ignore clean up errors and raise the original error instead.
# Python 2 doesn't chain exceptions. Remove this error
# silencing when dropping Python 2 compatibility.
pass
raise original_exception...
if result_type == CURSOR:
# Caller didn't specify a result_type, so just give them back the
# cursor to process (and close).
return cursor
if result_type == SINGLE:
Variable | Value |
---|---|
chunked_fetch | False |
cursor | <django.db.backends.utils.CursorDebugWrapper object at 0x7fa10366cbd0> |
original_exception | OperationalError(1242, 'Subquery returns more than 1 row') |
params | (True, u'2024-03-19 02:55:09.295478', 504, 504) |
result_type | 'multi' |
self | <django.db.backends.mysql.compiler.SQLCompiler object at 0x7fa0ff1c0790> |
sql | u'SELECT `blog_post`.`id`, `blog_post`.`name`, `blog_post`.`slug`, `blog_post`.`short_description`, `blog_post`.`description`, `blog_post`.`image`, `blog_post`.`created_at`, `blog_post`.`views`, `blog_post`.`rating`, `blog_post`.`is_visible` FROM `blog_post` INNER JOIN `blog_post_categories` ON (`blog_post`.`id` = `blog_post_categories`.`post_id`) WHERE (`blog_post`.`is_visible` = %s AND `blog_post`.`created_at` <= %s AND `blog_post_categories`.`category_id` = (SELECT U0.`id` AS Col1 FROM `blog_category` U0 INNER JOIN `blog_post_categories` U1 ON (U0.`id` = U1.`category_id`) WHERE U1.`post_id` = %s) AND NOT (`blog_post`.`id` = %s)) LIMIT 6' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTENT_LENGTH | '' |
CONTENT_TYPE | '' |
CSRF_COOKIE | u'273reD9sZcJjE6IZzLmWoLcgVn2JxKND6WuEGw15BcWBIXI8nZc7iTWRd7ZIyIW3' |
CSRF_COOKIE_USED | True |
DOCUMENT_ROOT | '/etc/nginx/html' |
HTTP_ACCEPT | '*/*' |
HTTP_ACCEPT_ENCODING | 'gzip' |
HTTP_HOST | 'lacode.ru' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '3.229.122.112' |
HTTP_X_FORWARDED_HOST | 'lacode.ru' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_FORWARDED_SERVER | '61e4d71522f3' |
HTTP_X_REAL_IP | '3.229.122.112' |
PATH_INFO | u'/blog/narashivanie-resnic-plyusy-i-minusy/' |
QUERY_STRING | '' |
REMOTE_ADDR | '172.18.0.2' |
REMOTE_PORT | '43520' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'http' |
REQUEST_URI | '/blog/narashivanie-resnic-plyusy-i-minusy/' |
SCRIPT_NAME | u'' |
SERVER_NAME | '_' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.1' |
uwsgi.node | 'f889b01f62e6' |
uwsgi.version | '2.0.24' |
wsgi.errors | <open file 'wsgi_errors', mode 'w' at 0x7fa100a34150> |
wsgi.file_wrapper | '' |
wsgi.input | <uwsgi._Input object at 0x7fa0ff4332f0> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
lacode.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | (('Max', 'xageru@gmail.com'), ('Vas', 'va.bolshakov@gmail.com')) |
ALLOWED_HOSTS | '*' |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | [u'django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | u'********************' |
AUTH_USER_MODEL | u'auth.User' |
BASE_DIR | '/var/www/lacode/lacode/settings/..' |
CACHES | {u'default': {u'BACKEND': u'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | u'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CAPTCHA_CHALLENGE_FUNCT | 'main.helpers.captcha_generator' |
CAPTCHA_LENGTH | 4 |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | u'csrftoken' |
CSRF_COOKIE_PATH | u'/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | u'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | u'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.mysql', 'HOST': 'mysql.common', 'NAME': 'lacode', 'OPTIONS': {'sql_mode': 'STRICT_TRANS_TABLES'}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'lacode'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | u'N j, Y, P' |
DATETIME_INPUT_FORMATS | [u'%Y-%m-%d %H:%M:%S', u'%Y-%m-%d %H:%M:%S.%f', u'%Y-%m-%d %H:%M', u'%Y-%m-%d', u'%m/%d/%Y %H:%M:%S', u'%m/%d/%Y %H:%M:%S.%f', u'%m/%d/%Y %H:%M', u'%m/%d/%Y', u'%m/%d/%y %H:%M:%S', u'%m/%d/%y %H:%M:%S.%f', u'%m/%d/%y %H:%M', u'%m/%d/%y'] |
DATE_FORMAT | u'N j, Y' |
DATE_INPUT_FORMATS | [u'%Y-%m-%d', u'%m/%d/%Y', u'%m/%d/%y', u'%b %d %Y', u'%b %d, %Y', u'%d %b %Y', u'%d %b, %Y', u'%B %d %Y', u'%B %d, %Y', u'%d %B %Y', u'%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | u'.' |
DEFAULT_CHARSET | u'utf-8' |
DEFAULT_CONTENT_TYPE | u'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | u'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | u'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | u'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | u'' |
DEFAULT_TABLESPACE | u'' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | u'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | u'localhost' |
EMAIL_HOST_PASSWORD | u'********************' |
EMAIL_HOST_USER | u'' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | u'********************' |
EMAIL_SUBJECT_PREFIX | u'[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
FILE_CHARSET | u'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | [u'django.core.files.uploadhandler.MemoryFileUploadHandler', u'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 | u'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ('grappelli', 'filebrowser', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'sorl.thumbnail', 'pytils', 'captcha', 'main', 'coupons', 'blog', 'keywords', 'word_case', 'admitad', 'django_extensions') |
INTERNAL_IPS | [] |
LANGUAGES | [(u'af', u'Afrikaans'), (u'ar', u'Arabic'), (u'ast', u'Asturian'), (u'az', u'Azerbaijani'), (u'bg', u'Bulgarian'), (u'be', u'Belarusian'), (u'bn', u'Bengali'), (u'br', u'Breton'), (u'bs', u'Bosnian'), (u'ca', u'Catalan'), (u'cs', u'Czech'), (u'cy', u'Welsh'), (u'da', u'Danish'), (u'de', u'German'), (u'dsb', u'Lower Sorbian'), (u'el', u'Greek'), (u'en', u'English'), (u'en-au', u'Australian English'), (u'en-gb', u'British English'), (u'eo', u'Esperanto'), (u'es', u'Spanish'), (u'es-ar', u'Argentinian Spanish'), (u'es-co', u'Colombian Spanish'), (u'es-mx', u'Mexican Spanish'), (u'es-ni', u'Nicaraguan Spanish'), (u'es-ve', u'Venezuelan Spanish'), (u'et', u'Estonian'), (u'eu', u'Basque'), (u'fa', u'Persian'), (u'fi', u'Finnish'), (u'fr', u'French'), (u'fy', u'Frisian'), (u'ga', u'Irish'), (u'gd', u'Scottish Gaelic'), (u'gl', u'Galician'), (u'he', u'Hebrew'), (u'hi', u'Hindi'), (u'hr', u'Croatian'), (u'hsb', u'Upper Sorbian'), (u'hu', u'Hungarian'), (u'ia', u'Interlingua'), (u'id', u'Indonesian'), (u'io', u'Ido'), (u'is', u'Icelandic'), (u'it', u'Italian'), (u'ja', u'Japanese'), (u'ka', u'Georgian'), (u'kk', u'Kazakh'), (u'km', u'Khmer'), (u'kn', u'Kannada'), (u'ko', u'Korean'), (u'lb', u'Luxembourgish'), (u'lt', u'Lithuanian'), (u'lv', u'Latvian'), (u'mk', u'Macedonian'), (u'ml', u'Malayalam'), (u'mn', u'Mongolian'), (u'mr', u'Marathi'), (u'my', u'Burmese'), (u'nb', u'Norwegian Bokm\xe5l'), (u'ne', u'Nepali'), (u'nl', u'Dutch'), (u'nn', u'Norwegian Nynorsk'), (u'os', u'Ossetic'), (u'pa', u'Punjabi'), (u'pl', u'Polish'), (u'pt', u'Portuguese'), (u'pt-br', u'Brazilian Portuguese'), (u'ro', u'Romanian'), (u'ru', u'Russian'), (u'sk', u'Slovak'), (u'sl', u'Slovenian'), (u'sq', u'Albanian'), (u'sr', u'Serbian'), (u'sr-latn', u'Serbian Latin'), (u'sv', u'Swedish'), (u'sw', u'Swahili'), (u'ta', u'Tamil'), (u'te', u'Telugu'), (u'th', u'Thai'), (u'tr', u'Turkish'), (u'tt', u'Tatar'), (u'udm', u'Udmurt'), (u'uk', u'Ukrainian'), (u'ur', u'Urdu'), (u'vi', u'Vietnamese'), (u'zh-hans', u'Simplified Chinese'), (u'zh-hant', u'Traditional Chinese')] |
LANGUAGES_BIDI | [u'he', u'ar', u'fa', u'ur'] |
LANGUAGE_CODE | 'ru' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | u'django_language' |
LANGUAGE_COOKIE_PATH | u'/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | u'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | u'/accounts/profile/' |
LOGIN_URL | u'/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/var/www/lacode/lacode/settings/../../media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | u'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | None |
MIDDLEWARE_CLASSES | ('main.middlewares.CustomMiddleware', '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', 'keywords.middlewares.AdvMiddleware') |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | u'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | u'********************' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
PREPEND_WWW | False |
PROJECT_ROOT | '/var/www/lacode/lacode/settings/../..' |
ROOT_URLCONF | 'lacode.urls' |
SECRET_KEY | u'********************' |
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 | u'root@localhost' |
SESSION_CACHE_ALIAS | u'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | u'sessionid' |
SESSION_COOKIE_PATH | u'/' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | u'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | u'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'lacode.settings' |
SHORT_DATETIME_FORMAT | u'm/d/Y P' |
SHORT_DATE_FORMAT | u'm/d/Y' |
SIGNING_BACKEND | u'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_NAME | 'Lacode.ru' |
SITE_URL | 'https://lacode.ru' |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | [u'django.contrib.staticfiles.finders.FileSystemFinder', u'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | u'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/var/www/lacode/lacode/settings/../../static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/www/lacode/lacode/settings/../templates'], 'OPTIONS': {'context_processors': ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.template.context_processors.request', 'django.contrib.messages.context_processors.messages', 'main.processors.categories', 'main.processors.economy', 'main.processors.advertising', 'main.processors.fresh_news', 'main.processors.settings', 'main.processors.metrics', 'main.processors.popup_promocode', 'main.processors.footer_links']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | u'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | u',' |
THUMBNAIL_DEBUG | False |
TIME_FORMAT | u'P' |
TIME_INPUT_FORMATS | [u'%H:%M:%S', u'%H:%M:%S.%f', u'%H:%M'] |
TIME_ZONE | 'UTC' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'lacode.wsgi.application' |
X_FRAME_OPTIONS | u'SAMEORIGIN' |
YEAR_MONTH_FORMAT | u'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.