Unable to resolve current sitetree item to get a `title_resolved` for current page. Check whether there is an appropriate sitetree item defined for current URL.
Request Method: | GET |
---|---|
Request URL: | https://www.askerkhanov.ru/accounts/registration/ |
Django Version: | 1.11.6 |
Exception Type: | SiteTreeError |
Exception Value: | Unable to resolve current sitetree item to get a `title_resolved` for current page. Check whether there is an appropriate sitetree item defined for current URL. |
Exception Location: | /var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/site-packages/sitetree/sitetreeapp.py in get_current_page_attr, line 745 |
Python Executable: | /var/www/askerkhanov/data/virtualenv/public__html/3.5/bin/python3.5 |
Python Version: | 3.5.9 |
Python Path: | ['/var/www/askerkhanov/data/www/askerkhanov.ru', '/var/www/askerkhanov/data/www/askerkhanov.ru', '/opt/passenger/src/helper-scripts', '/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib64/python35.zip', '/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib64/python3.5', '/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib64/python3.5/plat-linux', '/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib64/python3.5/lib-dynload', '/opt/alt/python35/lib64/python3.5', '/opt/alt/python35/lib/python3.5', '/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/site-packages', '/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/site-packages/odf', '/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/site-packages/odf', '/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/site-packages/odf', '/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/site-packages/odf', '/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/site-packages/odf', '/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/site-packages/odf', '/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/site-packages/odf'] |
Server time: | Пт, 29 Мар 2024 17:29:57 +0300 |
In template /var/www/askerkhanov/data/www/askerkhanov.ru/templates/header.html
, error at line 167
157 | </div> |
---|---|
158 | </div> |
159 | |
160 | </header> |
161 | {% url 'home' as home_url %} |
162 | |
163 | {% if request.get_full_path != home_url %} |
164 | <div class="container"> |
165 | <div class="sitetree-ftrs"> |
166 | <h1 class="sitetree-pagetitle"> |
167 | {% sitetree_page_title from "page_titles" %} |
168 | </h1> |
169 | <div class="sitetree-breadcrumbs"> |
170 | {% sitetree_breadcrumbs from "breadcrumbs" %} |
171 | </div> |
172 | </div> |
173 | </div> |
174 | {% endif %} |
175 | {# SEO #} |
176 | <span itemprop="name" style="display: none">Медицинский Центр им. Р.П. Аскерханова</span> |
177 | <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress" style="display: none"> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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 | SiteTreeError('Unable to resolve current sitetree item to get a `title_resolved` for current page. Check whether there is an appropriate sitetree item defined for current URL.',) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f2b0b6261d0>> |
request | <WSGIRequest: GET '/accounts/registration/'> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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 Registration at 0x7f2b07be2ea0> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f2b08094208>> |
request | <WSGIRequest: GET '/accounts/registration/'> |
resolver | <RegexURLResolver 'mca.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=accounts.views.Registration, args=(), kwargs={}, url_name=registration, app_names=[], namespaces=['accounts']) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f2b0b6261d0> |
wrapped_callback | <function Registration at 0x7f2b07be2ea0> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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 Registration at 0x7f2b07be2ea0> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f2b08094208>> |
request | <WSGIRequest: GET '/accounts/registration/'> |
resolver | <RegexURLResolver 'mca.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=accounts.views.Registration, args=(), kwargs={}, url_name=registration, app_names=[], namespaces=['accounts']) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f2b0b6261d0> |
wrapped_callback | <function Registration at 0x7f2b07be2ea0> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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"> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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 | {'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>, 'view': <accounts.views.Registration object at 0x7f2b06c415c0>} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7f2b06be67f0> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
request | <WSGIRequest: GET '/accounts/registration/'> |
self | <django.template.backends.django.Template object at 0x7f2b06be67f0> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
self | <django.template.base.Template object at 0x7f2b06c50978> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
self | <django.template.base.Template object at 0x7f2b06c50978> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
node | <ExtendsNode: extends 'index.html'> |
self | [<ExtendsNode: extends 'index.html'>] |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
self | <ExtendsNode: extends 'index.html'> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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 0x7f2b067c1550> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: '\n '>]>} |
compiled_parent | <django.template.base.Template object at 0x7f2b12554278> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
node | <django.template.defaulttags.LoadNode object at 0x7f2b06eedc88> |
self | <ExtendsNode: extends 'index.html'> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
self | <django.template.base.Template object at 0x7f2b12554278> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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 | ('"></script>\n' ' <script>\n' ' jQuery(function () {\n' " \tjQuery('.table').footable({\n" ' \t\tcalculateWidthOverride: function() {\n' ' \t\t\treturn {width: jQuery(window).width()};\n' ' \t\t},\n' ' \t\tbreakpoints: {\n' ' \t\t\tmobile: 0,\n' ' \t\t\ttablet: 720,\n' ' \t\t\tdesktop: 1024\n' ' \t\t}\n' ' \t});\n' ' })\n' ' </script>\n' '</head>\n' '<body>\n' ' \n' '<!--<div style="font-size: 16px;font-family: \'Open ' "Sans',Arial,Tahoma,sans-serif;line-height: 24px;text-align: center;padding: " '10px;background-color: #F2EBBF;color: #393939;border-bottom: 1px solid ' '#ddd;">-->\n' '<!-- Сайт на стадии разработки, приносим извинения за предоставленные ' 'неудобства-->\n' '<!--</div>-->\n' '\n' '<div class="main-container">\n' '\n' ' ') |
bits | ['', '\n<!DOCTYPE html>\n<html lang="ru">\n<head>\n ', '', '\n' ' <meta charset="UTF-8">\n' ' <meta name="viewport" content="width=device-width, initial-scale=1.0">\n' ' <meta property="og:url"\n' ' content="', 'https://', 'www.askerkhanov.ru', '/accounts/registration/', '"/>\n' ' <meta property="og:type" content="article"/>\n' ' <meta property="og:title" content="', '', '"/>\n <meta property="og:description" content="', '', '"/>\n <meta property="og:image"\n content="', 'https://', 'www.askerkhanov.ru', '/media/', '', '"/>\n <title>', '\n Медицинский Центр им. Р.П. Аскерханова', '</title>\n <link rel="stylesheet" href="', '/static/css/stylesheet.css', '">\n <link rel="stylesheet" href="', '/static/css/bootstrap.min.css', '">\n <link rel="stylesheet" href="', '/static/css/bootstrap-theme.css', '">\n <link rel="stylesheet" href="', '/static/css/colorbox.css', '">\n <link rel="stylesheet" href="', '/static/css/main.css', '">\n <link rel="stylesheet" href="', '/static/css/jquery-ui.css', '">\n <link rel="stylesheet" href="', '/static/css/jquery.mmenu.all.css', '">\n <link rel="stylesheet" href="', '/static/css/slick.css', '"/>\n <link rel="stylesheet" href="', '/static/css/footable.bootstrap.min.css', '"/>\n' '\n' ' <script ' 'src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>\n', '\n <script async type="text/javascript" src="', '/static/js/jquery.mmenu.all.js', '"></script>\n <script async type="text/javascript" src="', '/static/js/menu.js', '"></script>\n <script type="text/javascript" src="', '/static/js/slick.min.js', '"></script>\n' ' <script ' 'src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>\n' ' <script src="', '/static/js/datepicker-ru.js', '"></script>\n <script type="text/javascript" src="', '/static/js/jquery.colorbox-min.js', '"></script>\n <script type="text/javascript" src="', '/static/js/bootstrap.min.js', '"></script>\n <script type="text/javascript" src="', '/static/js/footable.min.js', '"></script>\n' " <script src='https://www.google.com/recaptcha/api.js'></script>\n" ' <script ' 'src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>\n' ' <script type="text/javascript" src="', '/static/js/main.js', '"></script>\n' ' <script>\n' ' jQuery(function () {\n' " \tjQuery('.table').footable({\n" ' \t\tcalculateWidthOverride: function() {\n' ' \t\t\treturn {width: jQuery(window).width()};\n' ' \t\t},\n' ' \t\tbreakpoints: {\n' ' \t\t\tmobile: 0,\n' ' \t\t\ttablet: 720,\n' ' \t\t\tdesktop: 1024\n' ' \t\t}\n' ' \t});\n' ' })\n' ' </script>\n' '</head>\n' '<body>\n' ' \n' '<!--<div style="font-size: 16px;font-family: \'Open ' "Sans',Arial,Tahoma,sans-serif;line-height: 24px;text-align: center;padding: " '10px;background-color: #F2EBBF;color: #393939;border-bottom: 1px solid ' '#ddd;">-->\n' '<!-- Сайт на стадии разработки, приносим извинения за предоставленные ' 'неудобства-->\n' '<!--</div>-->\n' '\n' '<div class="main-container">\n' '\n' ' '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
node | <django.template.loader_tags.IncludeNode object at 0x7f2b06d664a8> |
self | [<django.template.defaulttags.LoadNode object at 0x7f2b06eedc88>, <TextNode: '\n<!DOCTYPE html>\n<html la'>, <django.template.defaulttags.URLNode object at 0x7f2b06eed278>, <TextNode: '\n <meta charset="UTF-8'>, <IfNode>, <Variable Node: request.get_host>, <Variable Node: request.get_full_path>, <TextNode: '"/>\n <meta property="o'>, <Variable Node: item.title>, <TextNode: '"/>\n <meta property="o'>, <Variable Node: item.short_description>, <TextNode: '"/>\n <meta property="o'>, <IfNode>, <Variable Node: request.get_host>, <TextNode: '/media/'>, <Variable Node: item.preview_image>, <TextNode: '"/>\n <title>'>, <IfNode>, <TextNode: '</title>\n <link rel="s'>, <django.templatetags.static.StaticNode object at 0x7f2b06e5b2e8>, <TextNode: '">\n <link rel="stylesh'>, <django.templatetags.static.StaticNode object at 0x7f2b06e5bd68>, <TextNode: '">\n <link rel="stylesh'>, <django.templatetags.static.StaticNode object at 0x7f2b06e5b8d0>, <TextNode: '">\n <link rel="stylesh'>, <django.templatetags.static.StaticNode object at 0x7f2b06e5bf28>, <TextNode: '">\n <link rel="stylesh'>, <django.templatetags.static.StaticNode object at 0x7f2b06e5b5f8>, <TextNode: '">\n <link rel="stylesh'>, <django.templatetags.static.StaticNode object at 0x7f2b06e5b080>, <TextNode: '">\n <link rel="stylesh'>, <django.templatetags.static.StaticNode object at 0x7f2b06e5be10>, <TextNode: '">\n <link rel="stylesh'>, <django.templatetags.static.StaticNode object at 0x7f2b06e5b3c8>, <TextNode: '"/>\n <link rel="styles'>, <django.templatetags.static.StaticNode object at 0x7f2b06e5b860>, <TextNode: '"/>\n\n <script src="htt'>, <TextNode: '\n <script async type="'>, <django.templatetags.static.StaticNode object at 0x7f2b06e5bcc0>, <TextNode: '"></script>\n <script a'>, <django.templatetags.static.StaticNode object at 0x7f2b06e5b208>, <TextNode: '"></script>\n <script t'>, <django.templatetags.static.StaticNode object at 0x7f2b06e5b550>, <TextNode: '"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f2b06e5b7b8>, <TextNode: '"></script>\n <script t'>, <django.templatetags.static.StaticNode object at 0x7f2b06e5bac8>, <TextNode: '"></script>\n <script t'>, <django.templatetags.static.StaticNode object at 0x7f2b06e5be80>, <TextNode: '"></script>\n <script t'>, <django.templatetags.static.StaticNode object at 0x7f2b06e5b048>, <TextNode: '"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f2b06d66470>, <TextNode: '"></script>\n <script>\n'>, <django.template.loader_tags.IncludeNode object at 0x7f2b06d664a8>, <TextNode: '\n\n '>, <Block Node: content. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <django.template.loader_tags.IncludeNode object at 0x7f2b06d66e48>, <TextNode: '\n\n</div>\n\n'>, <IfNode>, <TextNode: '\n\n</body>\n</html>'>] |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f2b06d664a8> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/site-packages/django/template/loader_tags.py
in render
values = {
name: var.resolve(context)
for name, var in six.iteritems(self.extra_context)
}
if self.isolated_context:
return template.render(context.new(values))
with context.push(**values):
return template.render(context)...
except Exception as e:
if context.template.engine.debug:
raise
template_name = getattr(context, 'template_name', None) or 'unknown'
warnings.warn(
"Rendering {%% include '%s' %%} raised %s. In Django 2.1, "
Variable | Value |
---|---|
cache | {'header.html': <django.template.base.Template object at 0x7f2b06eedd68>} |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f2b06d664a8> |
template | <django.template.base.Template object at 0x7f2b06eedd68> |
template_name | 'header.html' |
values | {} |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/site-packages/django/template/base.py
in render
"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
is True and an exception occurs during parsing, the exception is
is annotated with contextual line information where it occurred in the
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
self | <django.template.base.Template object at 0x7f2b06eedd68> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
self | <django.template.base.Template object at 0x7f2b06eedd68> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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' |
bits | ['', '\n', '', '\n' '<div itemscope itemtype="http://schema.org/Organization"></div>\n' '<header>\n' ' <div class="info-line">\n' ' <div class="container">\n' ' <div class="info-line-item">\n' ' <a href="tel:+78722515899">\n' ' <svg class="info-line-icon" version="1.1" ' 'xmlns="http://www.w3.org/2000/svg"\n' ' xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" ' 'y="0px" viewBox="0 0 473.806 473.806"\n' ' xml:space="preserve">\n' ' <path ' 'd="M374.456,293.506c-9.7-10.1-21.4-15.5-33.8-15.5c-12.3,0-24.1,5.3-34.2,15.4l-31.6,31.5c-2.6-1.4-5.2-2.7-7.7-4\n' ' ' 'c-3.6-1.8-7-3.5-9.9-5.3c-29.6-18.8-56.5-43.3-82.3-75c-12.5-15.8-20.9-29.1-27-42.6c8.2-7.5,15.8-15.3,23.2-22.8\n' ' ' 'c2.8-2.8,5.6-5.7,8.4-8.5c21-21,21-48.2,0-69.2l-27.3-27.3c-3.1-3.1-6.3-6.3-9.3-9.5c-6-6.2-12.3-12.6-18.8-18.6\n' ' ' 'c-9.7-9.6-21.3-14.7-33.5-14.7s-24,5.1-34,14.7c-0.1,0.1-0.1,0.1-0.2,0.2l-34,34.3c-12.8,12.8-20.1,28.4-21.7,46.5\n' ' ' 'c-2.4,29.2,6.2,56.4,12.8,74.2c16.2,43.7,40.4,84.2,76.5,127.6c43.8,52.3,96.5,93.6,156.7,122.7c23,10.9,53.7,23.8,88,26\n' ' ' 'c2.1,0.1,4.3,0.2,6.3,0.2c23.1,0,42.5-8.3,57.7-24.8c0.1-0.2,0.3-0.3,0.4-0.5c5.2-6.3,11.2-12,17.5-18.1c4.3-4.1,8.7-8.4,13-12.9\n' ' ' 'c9.9-10.3,15.1-22.3,15.1-34.6c0-12.4-5.3-24.3-15.4-34.3L374.456,293.506z ' 'M410.256,398.806\n' ' ' 'C410.156,398.806,410.156,398.906,410.256,398.806c-3.9,4.2-7.9,8-12.2,12.2c-6.5,6.2-13.1,12.7-19.3,20\n' ' ' 'c-10.1,10.8-22,15.9-37.6,15.9c-1.5,0-3.1,0-4.6-0.1c-29.7-1.9-57.3-13.5-78-23.4c-56.6-27.4-106.3-66.3-147.6-115.6\n' ' ' 'c-34.1-41.1-56.9-79.1-72-119.9c-9.3-24.9-12.7-44.3-11.2-62.6c1-11.7,5.5-21.4,13.8-29.7l34.1-34.1c4.9-4.6,10.1-7.1,15.2-7.1\n' ' ' 'c6.3,0,11.4,3.8,14.6,7c0.1,0.1,0.2,0.2,0.3,0.3c6.1,5.7,11.9,11.6,18,17.9c3.1,3.2,6.3,6.4,9.5,9.7l27.3,27.3\n' ' ' 'c10.6,10.6,10.6,20.4,0,31c-2.9,2.9-5.7,5.8-8.6,8.6c-8.4,8.6-16.4,16.6-25.1,24.4c-0.2,0.2-0.4,0.3-0.5,0.5\n' ' ' 'c-8.6,8.6-7,17-5.2,22.7c0.1,0.3,0.2,0.6,0.3,0.9c7.1,17.2,17.1,33.4,32.3,52.7l0.1,0.1c27.6,34,56.7,60.5,88.8,80.8\n' ' ' 'c4.1,2.6,8.3,4.7,12.3,6.7c3.6,1.8,7,3.5,9.9,5.3c0.4,0.2,0.8,0.5,1.2,0.7c3.4,1.7,6.6,2.5,9.9,2.5c8.3,0,13.5-5.2,15.2-6.9\n' ' ' 'l34.2-34.2c3.4-3.4,8.8-7.5,15.1-7.5c6.2,0,11.3,3.9,14.4,7.3c0.1,0.1,0.1,0.1,0.2,0.2l55.1,55.1\n' ' ' 'C420.456,377.706,420.456,388.206,410.256,398.806z"></path>\n' ' <path ' 'd="M256.056,112.706c26.2,4.4,50,16.8,69,35.8s31.3,42.8,35.8,69c1.1,6.6,6.8,11.2,13.3,11.2c0.8,0,1.5-0.1,2.3-0.2\n' ' ' 'c7.4-1.2,12.3-8.2,11.1-15.6c-5.4-31.7-20.4-60.6-43.3-83.5s-51.8-37.9-83.5-43.3c-7.4-1.2-14.3,3.7-15.6,11\n' ' S248.656,111.506,256.056,112.706z"></path>\n' ' <path ' 'd="M473.256,209.006c-8.9-52.2-33.5-99.7-71.3-137.5s-85.3-62.4-137.5-71.3c-7.3-1.3-14.2,3.7-15.5,11\n' ' ' 'c-1.2,7.4,3.7,14.3,11.1,15.6c46.6,7.9,89.1,30,122.9,63.7c33.8,33.8,55.8,76.3,63.7,122.9c1.1,6.6,6.8,11.2,13.3,11.2\n' ' ' 'c0.8,0,1.5-0.1,2.3-0.2C469.556,223.306,474.556,216.306,473.256,209.006z"></path>\n' ' </svg>\n' ' <span class="info-line-span tel" itemprop="telephone">+7 ' '(8722) 51-58-99</span>\n' ' </a>\n' ' </div>\n' ' <div class="info-line-item">\n' ' <a href="mailto:info@askerkhanov.ru">\n' ' <svg version="1.1" class="info-line-icon" ' 'xmlns="http://www.w3.org/2000/svg"\n' ' xmlns:xlink="http://www.w3.org/1... <trimmed 17387 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
node | <IfNode> |
self | [<django.template.defaulttags.LoadNode object at 0x7f2b06e2e630>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f2b06e2e898>, <TextNode: '\n<div itemscope itemtype='>, <IfNode>, <TextNode: '\n </sp'>, <django.template.defaulttags.URLNode object at 0x7f2b06e2ee10>, <TextNode: '">Записаться к врачу</a>\n'>, <django.templatetags.static.StaticNode object at 0x7f2b06d47dd8>, <TextNode: '"></a>\n <h1>\n '>, <sitetree.templatetags.sitetree.sitetree_menuNode object at 0x7f2b06d473c8>, <TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7f2b06d47080>, <TextNode: '">Записаться к врачу</a>\n'>, <sitetree.templatetags.sitetree.sitetree_menuNode object at 0x7f2b06d47a58>, <TextNode: '\n </div>\n '>, <django.template.defaulttags.URLNode object at 0x7f2b06d472e8>, <TextNode: '\n\n'>, <IfNode>, <TextNode: '\n'>, <TextNode: '\n<span itemprop="name" st'>] |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
self | <IfNode> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/site-packages/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)...
return ''
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | (!= (literal <django.template.base.FilterExpression object at 0x7f2b06d47400>) (literal <django.template.base.FilterExpression object at 0x7f2b06d47cf8>)) |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
match | True |
nodelist | [<TextNode: '\n <div class="containe'>, <sitetree.templatetags.sitetree.sitetree_page_titleNode object at 0x7f2b06d47da0>, <TextNode: '\n </h1>\n '>, <sitetree.templatetags.sitetree.sitetree_breadcrumbsNode object at 0x7f2b06d47b38>, <TextNode: '\n </div>\n '>] |
self | <IfNode> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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' ' <div class="container">\n' ' <div class="sitetree-ftrs">\n' ' <h1 class="sitetree-pagetitle">\n' ' ') |
bits | ['\n' ' <div class="container">\n' ' <div class="sitetree-ftrs">\n' ' <h1 class="sitetree-pagetitle">\n' ' '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
node | <sitetree.templatetags.sitetree.sitetree_page_titleNode object at 0x7f2b06d47da0> |
self | [<TextNode: '\n <div class="containe'>, <sitetree.templatetags.sitetree.sitetree_page_titleNode object at 0x7f2b06d47da0>, <TextNode: '\n </h1>\n '>, <sitetree.templatetags.sitetree.sitetree_breadcrumbsNode object at 0x7f2b06d47b38>, <TextNode: '\n </div>\n '>] |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/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}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
self | <sitetree.templatetags.sitetree.sitetree_page_titleNode object at 0x7f2b06d47da0> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/site-packages/sitetree/templatetags/sitetree.py
in render
self.item = item
self.as_var = as_var
def get_value(self, context):
"""Should return a computed value to be used in render()."""
def render(self, context):
result = self.get_value(context)...
if self.as_var:
context[self.as_var] = result
return ''
return result
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
self | <sitetree.templatetags.sitetree.sitetree_page_titleNode object at 0x7f2b06d47da0> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/site-packages/sitetree/templatetags/sitetree.py
in get_value
return get_sitetree().url(self.item, context)
class sitetree_page_titleNode(SimpleNode):
"""Renders a page title from the specified site tree."""
def get_value(self, context):
return get_sitetree().get_current_page_title(self.item, context)...
class sitetree_page_descriptionNode(SimpleNode):
"""Renders a page description from the specified site tree."""
def get_value(self, context):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
self | <sitetree.templatetags.sitetree.sitetree_page_titleNode object at 0x7f2b06d47da0> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/site-packages/sitetree/sitetreeapp.py
in get_current_page_title
def get_current_page_title(self, tree_alias, context):
"""Returns resolved from sitetree title for current page.
:param str|unicode tree_alias:
:param Context context:
:rtype: str|unicode
"""
return self.get_current_page_attr('title_resolved', tree_alias, context)...
def get_current_page_attr(self, attr_name, tree_alias, context):
"""Returns an arbitrary attribute of a sitetree item resolved as current for current page.
:param str|unicode attr_name:
:param str|unicode tree_alias:
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
self | <sitetree.sitetreeapp.SiteTree object at 0x7f2b06e5b2b0> |
tree_alias | <django.template.base.FilterExpression object at 0x7f2b06d47048> |
/var/www/askerkhanov/data/virtualenv/public__html/3.5/lib/python3.5/site-packages/sitetree/sitetreeapp.py
in get_current_page_attr
tree_alias, sitetree_items = self.init_tree(tree_alias, context)
current_item = self.get_tree_current_item(tree_alias)
if current_item is None:
if settings.DEBUG and RAISE_ITEMS_ERRORS_ON_DEBUG:
raise SiteTreeError(
'Unable to resolve current sitetree item to get a `%s` for current page. Check whether '
'there is an appropriate sitetree item defined for current URL.' % attr_name)...
return ''
return getattr(current_item, attr_name, '')
def get_ancestor_level(self, current_item, depth=1):
Variable | Value |
---|---|
attr_name | 'title_resolved' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'news_href': '', 'view': <accounts.views.Registration object at 0x7f2b06c415c0>, 'form': <Registration bound=False, valid=Unknown, fields=(username;phone;email;first_name;last_name;father_name;born_date;password1;password2)>}] |
current_item | None |
self | <sitetree.sitetreeapp.SiteTree object at 0x7f2b06e5b2b0> |
sitetree_items | <QuerySet [<TreeItem: Главная>, <TreeItem: Новости>, <TreeItem: {{ item.title }}>, <TreeItem: Персонал>, <TreeItem: Персонал>, <TreeItem: {{items.header}}>, <TreeItem: Карта сайта>, <TreeItem: Отзывы>, <TreeItem: Вопросы и ответы>, <TreeItem: Прайс-лист>, <TreeItem: Конференции>, <TreeItem: {{ item.name }}>, <TreeItem: График работы врачей>, <TreeItem: Запись на прием>, <TreeItem: Регистрация>, <TreeItem: Войти>, <TreeItem: Конференции>, <TreeItem: Отделения>, <TreeItem: {{department.title}}>, <TreeItem: Баланс>, '...(remaining elements truncated)...']> |
tree_alias | 'page_titles' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTPS | 'on' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'www.askerkhanov.ru' |
HTTP_REFERER | 'http://www.askerkhanov.ru/accounts/registration/' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
PASSENGER_CONNECT_PASSWORD | 'eZ67s81FYaQLuBme' |
PATH_INFO | '/accounts/registration/' |
PERL5LIB | '/usr/share/awstats/lib:/usr/share/awstats/plugins' |
QUERY_STRING | '' |
REMOTE_ADDR | '44.208.25.215' |
REMOTE_PORT | '55320' |
REQUEST_METHOD | 'GET' |
REQUEST_URI | '/accounts/registration/' |
SCRIPT_NAME | '' |
SERVER_NAME | 'www.askerkhanov.ru' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | ('Apache/2.4.6 (CloudLinux) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16 ' 'Phusion_Passenger/6.0.14') |
UNIQUE_ID | 'ZgbQZCNvUODu-bDD6Q0BHAAAAAQ' |
passenger.hijack | None |
wsgi.errors | <_io.TextIOWrapper name='<stderr>' mode='w' encoding='ANSI_X3.4-1968'> |
wsgi.input | <_io.BufferedReader name=10> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
mca.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['asker.d-a-g.ru', 'localhost', '127.0.0.1', 'askerkhanov.ru', 'www.askerkhanov.ru'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/var/www/askerkhanov/data/www/askerkhanov.ru' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CKEDITOR_CONFIGS | {'default': {'toolbar': 'basic'}} |
CKEDITOR_UPLOAD_PATH | 'uploads/' |
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.mysql', 'HOST': 'localhost', 'NAME': 'askerkhanov_new', 'OPTIONS': {'init_command': "SET sql_mode='STRICT_TRANS_TABLES'"}, 'PASSWORD': '********************', 'PORT': '3306', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': 'dag_test_ds'}, 'TIME_ZONE': None, 'USER': 'ask_new'}} |
DATABASE_ROUTERS | [] |
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 | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
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 | False |
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' |
GOOGLE_RECAPTCHA_SECRET_KEY | '********************' |
IGNORABLE_404_URLS | [] |
IMPORT_EXPORT_USE_TRANSACTIONS | False |
INSTALLED_APPS | ['django.contrib.auth', 'django.contrib.admin', 'django.contrib.sitemaps', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.contenttypes', 'django.contrib.sites', 'django_comments', 'ckeditor_uploader', 'import_export', 'ckeditor', 'sitetree', 'sorl.thumbnail', 'django_instagram', 'settings', 'prices', 'qna', 'enrolls', 'accounts', 'yandex_money', 'rangefilter'] |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'ru-ru' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {'disable_existing_loggers': False, 'handlers': {'console': {'class': 'logging.StreamHandler'}, 'file': {'class': 'logging.FileHandler', 'filename': 'django_errors.log', 'level': 'ERROR'}}, 'loggers': {'django': {'handlers': ['console', 'file'], 'level': 'ERROR'}}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/var/www/askerkhanov/data/www/askerkhanov.ru/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIDDLEWARE_CLASSES | ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'mca.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 | 'mca.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 | ['/var/www/askerkhanov/data/www/askerkhanov.ru/static'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | None |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/www/askerkhanov/data/www/askerkhanov.ru/templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
THUMBNAIL_DEBUG | True |
THUMBNAIL_PRESERVE_FORMAT | True |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Europe/Moscow' |
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 | 'mca.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YANDEX_MONEY_DEBUG | True |
YANDEX_MONEY_FAIL_URL | 'https://askerkhanov.ru/' |
YANDEX_MONEY_MAIL_ADMINS_ON_PAYMENT_ERROR | True |
YANDEX_MONEY_SCID | 735281 |
YANDEX_MONEY_SHOP_ID | 185070 |
YANDEX_MONEY_SHOP_PASSWORD | '********************' |
YANDEX_MONEY_SUCCESS_URL | 'https://askerkhanov.ru/' |
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.