HTTPConnectionPool(host='chorsubazaar.uzbekistan360.uz', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f5308be8240>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Request Method: | GET |
---|---|
Request URL: | http://visittashkent.uz/en/place/552 |
Django Version: | 2.2.11 |
Exception Type: | ConnectionError |
Exception Value: | HTTPConnectionPool(host='chorsubazaar.uzbekistan360.uz', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f5308be8240>: Failed to establish a new connection: [Errno -2] Name or service not known',)) |
Exception Location: | /usr/lib/python3/dist-packages/requests/adapters.py in send, line 437 |
Python Executable: | /usr/bin/python3 |
Python Version: | 3.5.2 |
Python Path: | ['/var/www/gotashkent', '/var/www/gotashkent', '/usr/lib/python3/dist-packages', '/usr/bin', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/home/zerocool/.local/lib/python3.5/site-packages', '/var/www/gotashkent/src/hvad', '/usr/local/lib/python3.5/dist-packages'] |
Server time: | Thu, 18 Apr 2024 21:27:44 +0500 |
In template /var/www/gotashkent/index/templates/frontend/base/base.html
, error at line 18
8 | <meta charset="utf-8"> |
---|---|
9 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
10 | <meta name="viewport" content="width=device-width,initial-scale=1"> |
11 | |
12 | <title>GO Tashkent | {% block title %}{% endblock %}</title> |
13 | <meta content="" name="description"> |
14 | <meta content="" name="keywords"> |
15 | <link rel="stylesheet" href="{% static 'frontend/css/normalize.css' %}"/> |
16 | <link rel="stylesheet" href="{% static 'frontend/css/bootstrap.css' %}"/> |
17 | <link rel="stylesheet" href="{% static 'frontend/css/viewer.css' %}"> |
18 | <link rel="stylesheet" href="{% static 'frontend/css/slick.css' %}"/> |
19 | <link rel="stylesheet" href="{% static 'frontend/css/style.css' %}?t={% now "U" %}"/> |
20 | |
21 | <link |
22 | rel="stylesheet" |
23 | href="https://fonts.googleapis.com/css?family=Montserrat:400,500,500i,700,900&subset=cyrillic" |
24 | /> |
25 | <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css"/> |
26 | |
27 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css" /> |
28 | <!-- Favicon--> |
/usr/lib/python3/dist-packages/urllib3/connection.py
in _new_conn
extra_kw['source_address'] = self.source_address
if self.socket_options:
extra_kw['socket_options'] = self.socket_options
try:
conn = connection.create_connection(
(self.host, self.port), self.timeout, **extra_kw)…
except SocketTimeout:
raise ConnectTimeoutError(
self, "Connection to %s timed out. (connect timeout=%s)" %
(self.host, self.timeout))
Variable | Value |
---|---|
extra_kw | {'socket_options': [(6, 1, 1)]} |
self | <requests.packages.urllib3.connection.HTTPConnection object at 0x7f5308be8240> |
/usr/lib/python3/dist-packages/urllib3/util/connection.py
in create_connection
An host of '' or port 0 tells the OS to use the default.
"""
host, port = address
if host.startswith('['):
host = host.strip('[]')
err = None
for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):…
af, socktype, proto, canonname, sa = res
sock = None
try:
sock = socket.socket(af, socktype, proto)
# If provided, set socket level options before connecting.
Variable | Value |
---|---|
address | ('chorsubazaar.uzbekistan360.uz', 80) |
err | None |
host | 'chorsubazaar.uzbekistan360.uz' |
port | 80 |
socket_options | [(6, 1, 1)] |
source_address | None |
timeout | None |
/usr/lib/python3.5/socket.py
in getaddrinfo
The family, type and proto arguments can be optionally specified in order to
narrow the list of addresses returned. Passing zero as a value for each of
these arguments selects the full range of results.
"""
# We override this function since we want to translate the numeric family
# and socket type values to enum constants.
addrlist = []
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):…
af, socktype, proto, canonname, sa = res
addrlist.append((_intenum_converter(af, AddressFamily),
_intenum_converter(socktype, SocketKind),
proto, canonname, sa))
return addrlist
Variable | Value |
---|---|
addrlist | [] |
family | 0 |
flags | 0 |
host | 'chorsubazaar.uzbekistan360.uz' |
port | 80 |
proto | 0 |
type | <SocketKind.SOCK_STREAM: 1> |
/usr/lib/python3/dist-packages/urllib3/connectionpool.py
in urlopen
is_new_proxy_conn = self.proxy is not None and not getattr(conn, 'sock', None)
if is_new_proxy_conn:
self._prepare_proxy(conn)
# Make the request on the httplib connection object.
httplib_response = self._make_request(conn, method, url,
timeout=timeout_obj,
body=body, headers=headers)…
# If we're going to release the connection in ``finally:``, then
# the request doesn't need to know about the connection. Otherwise
# it will also try to release it and we'll have a double-release
# mess.
response_conn = not release_conn and conn
Variable | Value |
---|---|
assert_same_host | False |
body | None |
conn | None |
err | None |
headers | {'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate', 'User-Agent': 'python-requests/2.9.1', 'Connection': 'keep-alive'} |
is_new_proxy_conn | False |
method | 'GET' |
pool_timeout | None |
redirect | False |
release_conn | True |
response_kw | {'decode_content': False, 'preload_content': False} |
retries | Retry(total=0, connect=None, read=False, redirect=None) |
self | <requests.packages.urllib3.connectionpool.HTTPConnectionPool object at 0x7f5308be8358> |
timeout | <requests.packages.urllib3.util.timeout.Timeout object at 0x7f5308be8d30> |
timeout_obj | <requests.packages.urllib3.util.timeout.Timeout object at 0x7f5308be8940> |
url | '/' |
/usr/lib/python3/dist-packages/urllib3/connectionpool.py
in _make_request
except (SocketTimeout, BaseSSLError) as e:
# Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout.
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# conn.request() calls httplib.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
conn.request(method, url, **httplib_request_kw)…
# Reset the timeout for the recv() on the socket
read_timeout = timeout_obj.read_timeout
# App Engine doesn't have a sock attr
if getattr(conn, 'sock', None):
Variable | Value |
---|---|
conn | <requests.packages.urllib3.connection.HTTPConnection object at 0x7f5308be8240> |
httplib_request_kw | {'body': None, 'headers': {'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate', 'User-Agent': 'python-requests/2.9.1', 'Connection': 'keep-alive'}} |
method | 'GET' |
self | <requests.packages.urllib3.connectionpool.HTTPConnectionPool object at 0x7f5308be8358> |
timeout | <requests.packages.urllib3.util.timeout.Timeout object at 0x7f5308be8940> |
timeout_obj | <requests.packages.urllib3.util.timeout.Timeout object at 0x7f5308be8b00> |
url | '/' |
/usr/lib/python3.5/http/client.py
in request
self.__state = _CS_REQ_SENT
else:
raise CannotSendHeader()
self._send_output(message_body)
def request(self, method, url, body=None, headers={}):
"""Send a complete request to the server."""
self._send_request(method, url, body, headers)…
def _set_content_length(self, body, method):
# Set the content-length based on the body. If the body is "empty", we
# set Content-Length: 0 for methods that expect a body (RFC 7230,
# Section 3.3.2). If the body is set for other methods, we set the
# header provided we can figure out what the length is.
Variable | Value |
---|---|
body | None |
headers | {'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate', 'User-Agent': 'python-requests/2.9.1', 'Connection': 'keep-alive'} |
method | 'GET' |
self | <requests.packages.urllib3.connection.HTTPConnection object at 0x7f5308be8240> |
url | '/' |
/usr/lib/python3.5/http/client.py
in _send_request
self._set_content_length(body, method)
for hdr, value in headers.items():
self.putheader(hdr, value)
if isinstance(body, str):
# RFC 2616 Section 3.7.1 says that text default has a
# default charset of iso-8859-1.
body = _encode(body, 'body')
self.endheaders(body)…
def getresponse(self):
"""Get the response from the server.
If the HTTPConnection is in the correct state, returns an
instance of HTTPResponse or of whatever object is returned by
Variable | Value |
---|---|
body | None |
hdr | 'Accept' |
header_names | {'accept': None, 'accept-encoding': None, 'connection': None, 'user-agent': None} |
headers | {'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate', 'User-Agent': 'python-requests/2.9.1', 'Connection': 'keep-alive'} |
method | 'GET' |
self | <requests.packages.urllib3.connection.HTTPConnection object at 0x7f5308be8240> |
skips | {'skip_accept_encoding': 1} |
url | '/' |
value | '*/*' |
/usr/lib/python3.5/http/client.py
in endheaders
message headers if it is a string, otherwise it is sent as a separate
packet.
"""
if self.__state == _CS_REQ_STARTED:
self.__state = _CS_REQ_SENT
else:
raise CannotSendHeader()
self._send_output(message_body)…
def request(self, method, url, body=None, headers={}):
"""Send a complete request to the server."""
self._send_request(method, url, body, headers)
def _set_content_length(self, body, method):
Variable | Value |
---|---|
message_body | None |
self | <requests.packages.urllib3.connection.HTTPConnection object at 0x7f5308be8240> |
/usr/lib/python3.5/http/client.py
in _send_output
Appends an extra \\r\\n to the buffer.
A message_body may be specified, to be appended to the request.
"""
self._buffer.extend((b"", b""))
msg = b"\r\n".join(self._buffer)
del self._buffer[:]
self.send(msg)…
if message_body is not None:
self.send(message_body)
def putrequest(self, method, url, skip_host=0, skip_accept_encoding=0):
"""Send a request to the server.
Variable | Value |
---|---|
message_body | None |
msg | (b'GET / HTTP/1.1\r\nHost: chorsubazaar.uzbekistan360.uz\r\nUser-Agent: python-' b'requests/2.9.1\r\nAccept-Encoding: gzip, deflate\r\nConnection: keep-ali' b've\r\nAccept: */*\r\n\r\n') |
self | <requests.packages.urllib3.connection.HTTPConnection object at 0x7f5308be8240> |
/usr/lib/python3.5/http/client.py
in send
"""Send `data' to the server.
``data`` can be a string object, a bytes object, an array object, a
file-like object that supports a .read() method, or an iterable object.
"""
if self.sock is None:
if self.auto_open:
self.connect()…
else:
raise NotConnected()
if self.debuglevel > 0:
print("send:", repr(data))
blocksize = 8192
Variable | Value |
---|---|
data | (b'GET / HTTP/1.1\r\nHost: chorsubazaar.uzbekistan360.uz\r\nUser-Agent: python-' b'requests/2.9.1\r\nAccept-Encoding: gzip, deflate\r\nConnection: keep-ali' b've\r\nAccept: */*\r\n\r\n') |
self | <requests.packages.urllib3.connection.HTTPConnection object at 0x7f5308be8240> |
/usr/lib/python3/dist-packages/urllib3/connection.py
in connect
if getattr(self, '_tunnel_host', None):
# TODO: Fix tunnel so it doesn't depend on self.sock state.
self._tunnel()
# Mark this connection as not reusable
self.auto_open = 0
def connect(self):
conn = self._new_conn()…
self._prepare_conn(conn)
def putrequest(self, method, url, *args, **kwargs):
"""Send a request to the server"""
match = _CONTAINS_CONTROL_CHAR_RE.search(method)
if match:
Variable | Value |
---|---|
self | <requests.packages.urllib3.connection.HTTPConnection object at 0x7f5308be8240> |
/usr/lib/python3/dist-packages/urllib3/connection.py
in _new_conn
except SocketTimeout:
raise ConnectTimeoutError(
self, "Connection to %s timed out. (connect timeout=%s)" %
(self.host, self.timeout))
except SocketError as e:
raise NewConnectionError(
self, "Failed to establish a new connection: %s" % e)…
return conn
def _prepare_conn(self, conn):
self.sock = conn
# the _tunnel_host attribute was added in python 2.6.3 (via
Variable | Value |
---|---|
extra_kw | {'socket_options': [(6, 1, 1)]} |
self | <requests.packages.urllib3.connection.HTTPConnection object at 0x7f5308be8240> |
/usr/lib/python3/dist-packages/requests/adapters.py
in send
body=request.body,
headers=request.headers,
redirect=False,
assert_same_host=False,
preload_content=False,
decode_content=False,
retries=self.max_retries,
timeout=timeout…
)
# Send the request.
else:
if hasattr(conn, 'proxy_pool'):
conn = conn.proxy_pool
Variable | Value |
---|---|
cert | None |
chunked | False |
conn | <requests.packages.urllib3.connectionpool.HTTPConnectionPool object at 0x7f5308be8358> |
proxies | OrderedDict() |
request | <PreparedRequest [GET]> |
self | <requests.adapters.HTTPAdapter object at 0x7f530a338cf8> |
stream | False |
timeout | <requests.packages.urllib3.util.timeout.Timeout object at 0x7f5308be8d30> |
url | '/' |
verify | True |
/usr/lib/python3/dist-packages/urllib3/connectionpool.py
in urlopen
if isinstance(e, (SocketError, NewConnectionError)) and self.proxy:
e = ProxyError('Cannot connect to proxy.', e)
elif isinstance(e, (SocketError, HTTPException)):
e = ProtocolError('Connection aborted.', e)
retries = retries.increment(method, url, error=e, _pool=self,
_stacktrace=sys.exc_info()[2])…
retries.sleep()
# Keep track of the error for the retry warning.
err = e
finally:
Variable | Value |
---|---|
assert_same_host | False |
body | None |
conn | None |
err | None |
headers | {'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate', 'User-Agent': 'python-requests/2.9.1', 'Connection': 'keep-alive'} |
is_new_proxy_conn | False |
method | 'GET' |
pool_timeout | None |
redirect | False |
release_conn | True |
response_kw | {'decode_content': False, 'preload_content': False} |
retries | Retry(total=0, connect=None, read=False, redirect=None) |
self | <requests.packages.urllib3.connectionpool.HTTPConnectionPool object at 0x7f5308be8358> |
timeout | <requests.packages.urllib3.util.timeout.Timeout object at 0x7f5308be8d30> |
timeout_obj | <requests.packages.urllib3.util.timeout.Timeout object at 0x7f5308be8940> |
url | '/' |
/usr/lib/python3/dist-packages/urllib3/util/retry.py
in increment
new_retry = self.new(
total=total,
connect=connect, read=read, redirect=redirect,
_observed_errors=_observed_errors)
if new_retry.is_exhausted():
raise MaxRetryError(_pool, url, error or ResponseError(cause))…
log.debug("Incremented Retry for (url='%s'): %r" % (url, new_retry))
return new_retry
def __repr__(self):
Variable | Value |
---|---|
_observed_errors | 1 |
_pool | <requests.packages.urllib3.connectionpool.HTTPConnectionPool object at 0x7f5308be8358> |
_stacktrace | <traceback object at 0x7f5308d669c8> |
cause | 'unknown' |
connect | None |
error | NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f5308be8240>: Failed to establish a new connection: [Errno -2] Name or service not known',) |
method | 'GET' |
new_retry | Retry(total=-1, connect=None, read=False, redirect=None) |
read | False |
redirect | None |
response | None |
self | Retry(total=0, connect=None, read=False, redirect=None) |
total | -1 |
url | '/' |
/home/zerocool/.local/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)
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 | ConnectionError(MaxRetryError("HTTPConnectionPool(host='chorsubazaar.uzbekistan360.uz', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f5308be8240>: Failed to establish a new connection: [Errno -2] Name or service not known',))",),) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f530a509550>> |
request | <WSGIRequest: GET '/en/place/552'> |
/home/zerocool/.local/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 PlaceDetailView at 0x7f530a3ac7b8> |
callback_args | () |
callback_kwargs | {'pk': 552} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f530a4975c0>> |
request | <WSGIRequest: GET '/en/place/552'> |
resolver | <URLResolver 'goTashkent.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=place.views.PlaceDetailView, args=(), kwargs={'pk': 552}, url_name=place_view, app_names=['place'], namespaces=['place'], route=en/place/<int:pk>) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f530a509550> |
urlconf | 'goTashkent.urls' |
wrapped_callback | <function PlaceDetailView at 0x7f530a3ac7b8> |
/home/zerocool/.local/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 PlaceDetailView at 0x7f530a3ac7b8> |
callback_args | () |
callback_kwargs | {'pk': 552} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f530a4975c0>> |
request | <WSGIRequest: GET '/en/place/552'> |
resolver | <URLResolver 'goTashkent.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=place.views.PlaceDetailView, args=(), kwargs={'pk': 552}, url_name=place_view, app_names=['place'], namespaces=['place'], route=en/place/<int:pk>) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f530a509550> |
urlconf | 'goTashkent.urls' |
wrapped_callback | <function PlaceDetailView at 0x7f530a3ac7b8> |
/home/zerocool/.local/lib/python3.5/site-packages/django/template/response.py
in render
If the content has already been rendered, this is a no-op.
Return the baked response instance.
"""
retval = self
if not self._is_rendered:
self.content = self.rendered_content…
for post_callback in self._post_render_callbacks:
newretval = post_callback(retval)
if newretval is not None:
retval = newretval
return retval
Variable | Value |
---|---|
retval | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
/home/zerocool/.local/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):
"""Add a new post-rendering callback.
If the response has already been rendered,
Variable | Value |
---|---|
context | {'object': <Place: Chorsu Bazaar>, 'place': <Place: Chorsu Bazaar>, 'same_place_list': <TranslationQueryset [<Place: Ecobozor>, <Place: Atlas Mebel>, <Place: Mediapark>]>, 'view': <place.views.PlaceDetailView object at 0x7f5308d7b240>} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7f53068cf160> |
/home/zerocool/.local/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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {'site_info': <Site: HEAD DEPARTMENT <br/> OF TOURISM AND CULTURAL HERITAGE <br/> OF TASHKENT CITY>, 'same_place_list': <TranslationQueryset [<Place: Ecobozor>, <Place: Atlas Mebel>, <Place: Mediapark>]>, 'view': <place.views.PlaceDetailView object at 0x7f5308d7b240>, 'object': <Place: Chorsu Bazaar>, 'place': <Place: Chorsu Bazaar>, 'current_language': 'en'}] |
request | <WSGIRequest: GET '/en/place/552'> |
self | <django.template.backends.django.Template object at 0x7f53068cf160> |
/home/zerocool/.local/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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {'site_info': <Site: HEAD DEPARTMENT <br/> OF TOURISM AND CULTURAL HERITAGE <br/> OF TASHKENT CITY>, 'same_place_list': <TranslationQueryset [<Place: Ecobozor>, <Place: Atlas Mebel>, <Place: Mediapark>]>, 'view': <place.views.PlaceDetailView object at 0x7f5308d7b240>, 'object': <Place: Chorsu Bazaar>, 'place': <Place: Chorsu Bazaar>, 'current_language': 'en'}] |
self | <django.template.base.Template object at 0x7f530723f1d0> |
/home/zerocool/.local/lib/python3.5/site-packages/django/template/base.py
in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {'site_info': <Site: HEAD DEPARTMENT <br/> OF TOURISM AND CULTURAL HERITAGE <br/> OF TASHKENT CITY>, 'same_place_list': <TranslationQueryset [<Place: Ecobozor>, <Place: Atlas Mebel>, <Place: Mediapark>]>, 'view': <place.views.PlaceDetailView object at 0x7f5308d7b240>, 'object': <Place: Chorsu Bazaar>, 'place': <Place: Chorsu Bazaar>, 'current_language': 'en'}] |
self | <django.template.base.Template object at 0x7f530723f1d0> |
/home/zerocool/.local/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(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'site_info': <Site: HEAD DEPARTMENT <br/> OF TOURISM AND CULTURAL HERITAGE <br/> OF TASHKENT CITY>, 'same_place_list': <TranslationQueryset [<Place: Ecobozor>, <Place: Atlas Mebel>, <Place: Mediapark>]>, 'view': <place.views.PlaceDetailView object at 0x7f5308d7b240>, 'object': <Place: Chorsu Bazaar>, 'place': <Place: Chorsu Bazaar>, 'current_language': 'en'}] |
node | <ExtendsNode: extends 'frontend/base/base.html'> |
self | [<ExtendsNode: extends 'frontend/base/base.html'>] |
/home/zerocool/.local/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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {'site_info': <Site: HEAD DEPARTMENT <br/> OF TOURISM AND CULTURAL HERITAGE <br/> OF TASHKENT CITY>, 'same_place_list': <TranslationQueryset [<Place: Ecobozor>, <Place: Atlas Mebel>, <Place: Mediapark>]>, 'view': <place.views.PlaceDetailView object at 0x7f5308d7b240>, 'object': <Place: Chorsu Bazaar>, 'place': <Place: Chorsu Bazaar>, 'current_language': 'en'}] |
self | <ExtendsNode: extends 'frontend/base/base.html'> |
/home/zerocool/.local/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, extra_context=None, isolated_context=False, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f5308cf7d68> |
blocks | {'banner': <Block Node: banner. Contents: []>, 'content': <Block Node: content. Contents: []>, 'footer': <Block Node: footer. Contents: [<django.template.loader_tags.IncludeNode object at 0x7f5308cf7d30>]>, 'header': <Block Node: header. Contents: [<django.template.loader_tags.IncludeNode object at 0x7f5308cf7550>]>, 'title': <Block Node: title. Contents: []>} |
compiled_parent | <django.template.base.Template object at 0x7f5308d93b00> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'site_info': <Site: HEAD DEPARTMENT <br/> OF TOURISM AND CULTURAL HERITAGE <br/> OF TASHKENT CITY>, 'same_place_list': <TranslationQueryset [<Place: Ecobozor>, <Place: Atlas Mebel>, <Place: Mediapark>]>, 'view': <place.views.PlaceDetailView object at 0x7f5308d7b240>, 'object': <Place: Chorsu Bazaar>, 'place': <Place: Chorsu Bazaar>, 'current_language': 'en'}] |
node | <django.template.defaulttags.LoadNode object at 0x7f53068cf390> |
self | <ExtendsNode: extends 'frontend/base/base.html'> |
/home/zerocool/.local/lib/python3.5/site-packages/django/template/base.py
in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {'site_info': <Site: HEAD DEPARTMENT <br/> OF TOURISM AND CULTURAL HERITAGE <br/> OF TASHKENT CITY>, 'same_place_list': <TranslationQueryset [<Place: Ecobozor>, <Place: Atlas Mebel>, <Place: Mediapark>]>, 'view': <place.views.PlaceDetailView object at 0x7f5308d7b240>, 'object': <Place: Chorsu Bazaar>, 'place': <Place: Chorsu Bazaar>, 'current_language': 'en'}] |
self | <django.template.base.Template object at 0x7f5308d93b00> |
/home/zerocool/.local/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(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n' |
bits | ['', '\n', '', '\n', '', '\n' '\n' '<!DOCTYPE html>\n' '<html lang="en">\n' '<head>\n' ' <meta charset="utf-8">\n' ' <meta http-equiv="X-UA-Compatible" content="IE=edge">\n' ' <meta name="viewport" content="width=device-width,initial-scale=1">\n' '\n' ' <title>GO Tashkent | ', 'Chorsu Bazaar', '</title>\n' ' <meta content="" name="description">\n' ' <meta content="" name="keywords">\n' ' <link rel="stylesheet" href="', '/static/frontend/css/normalize.css', '"/>\n <link rel="stylesheet" href="', '/static/frontend/css/bootstrap.css', '"/>\n <link rel="stylesheet" href="', '/static/frontend/css/viewer.css', '">\n <link rel="stylesheet" href="', '/static/frontend/css/slick.css', '"/>\n <link rel="stylesheet" href="', '/static/frontend/css/style.css', '?t=', '1713457663', '"/>\n' '\n' ' <link\n' ' rel="stylesheet"\n' ' ' 'href="https://fonts.googleapis.com/css?family=Montserrat:400,500,500i,700,900&subset=cyrillic"\n' ' />\n' ' <link rel="stylesheet" ' 'href="https://use.fontawesome.com/releases/v5.6.3/css/all.css"/>\n' '\n' ' <link rel="stylesheet" ' 'href="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css" ' '/>\n' ' <!-- Favicon-->\n' ' <link rel="icon" type="image/x-icon" href="', '/static/frontend/favicon.ico', '">\n' '\n' ' <!-- Yandex.Metrika counter -->\n' ' <script type="text/javascript" >\n' ' ' '(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};\n' ' m[i].l=1*new ' 'Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})\n' ' (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", ' '"ym");\n' '\n' ' ym(54075313, "init", {\n' ' clickmap:true,\n' ' trackLinks:true,\n' ' accurateTrackBounce:true\n' ' });\n' ' </script>\n' ' <noscript><div><img src="https://mc.yandex.ru/watch/54075313" ' 'style="position:absolute; left:-9999px;" alt="" /></div></noscript>\n' ' <!-- /Yandex.Metrika counter -->\n' '\n' '</head>\n' '<body>\n', '', '\n', '', '\n\n', '\n' '\n' '\n' '\n' '\n' '\n' '<div class="header">\n' ' <div class="container-fluid">\n' ' <div class="d-flex align-items-center">\n' ' <div class="logo">\n' ' <a href="/">\n' ' <img src="/uploads/site_settings/logo-tashkent4.png" ' 'alt=""/>\n' ' </a>\n' ' </div>\n' '\n' ' <div class="company-info ml-xl-5">\n' ' HEAD DEPARTMENT <br/> OF TOURISM AND CULTURAL HERITAGE <br/> ' 'OF TASHKENT CITY\n' ' </div>\n' '\n' ' <nav class="navbar navbar-expand-lg navbar-light ml-lg-auto ' 'mr-lg-auto">\n' ' <div class="navbar-close"></div>\n' ' \n' ' \n' ' \n' ' \n' ' \n' ' <ul class="navbar-nav">\n' ' <li class="nav-item ">\n' ' <a class="nav-link" href="/en/">Home</a>\n' ' </li>\n' ' <li class="nav-item active">\n' ' <a class="nav-link" href="/en/city">City</a>\n' ' </li>\n' ' <li class="nav-item " >\n' ' <a class="nav-link" href="/en/navigation/1">Tourist ' 'INFO</a>\n' ' </li>\n' ' <li class="nav-item ">\n' ' <a class="nav-link" href="/en/content/events">\n' ' Event Calendar\n' ' </a>\n' ' </li>\n' ' <li class="nav-item ">\n' ' <a class="nav-link" ' 'href="/en/content/news">News</a>\n' ' </li>\n' '\t\t\t\t\t\n' ' \n' ' \n' ' \n… <trimmed 9392 bytes string> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'site_info': <Site: HEAD DEPARTMENT <br/> OF TOURISM AND CULTURAL HERITAGE <br/> OF TASHKENT CITY>, 'same_place_list': <TranslationQueryset [<Place: Ecobozor>, <Place: Atlas Mebel>, <Place: Mediapark>]>, 'view': <place.views.PlaceDetailView object at 0x7f5308d7b240>, 'object': <Place: Chorsu Bazaar>, 'place': <Place: Chorsu Bazaar>, 'current_language': 'en'}] |
node | <Block Node: content. Contents: []> |
self | [<django.template.defaulttags.LoadNode object at 0x7f53068cf390>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f53068cf550>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f53068cfb70>, <TextNode: '\n\n<!DOCTYPE html>\n<html l'>, <Block Node: title. Contents: []>, <TextNode: '</title>\n <meta conten'>, <django.templatetags.static.StaticNode object at 0x7f53068cf6d8>, <TextNode: '"/>\n <link rel="styles'>, <django.templatetags.static.StaticNode object at 0x7f53068cfac8>, <TextNode: '"/>\n <link rel="styles'>, <django.templatetags.static.StaticNode object at 0x7f53068cf2b0>, <TextNode: '">\n <link rel="stylesh'>, <django.templatetags.static.StaticNode object at 0x7f53068cf3c8>, <TextNode: '"/>\n <link rel="styles'>, <django.templatetags.static.StaticNode object at 0x7f53068cf048>, <TextNode: '?t='>, <django.template.defaulttags.NowNode object at 0x7f53068cf978>, <TextNode: '"/>\n\n <link\n '>, <django.templatetags.static.StaticNode object at 0x7f5308cf7cc0>, <TextNode: '">\n\n <!-- Yandex.Metri'>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7f5308cf7b70>, <TextNode: '\n'>, <django.template.library.SimpleNode object at 0x7f5308cf76d8>, <TextNode: '\n\n'>, <Block Node: header. Contents: [<django.template.loader_tags.IncludeNode object at 0x7f5308cf7550>]>, <TextNode: '\n'>, <Block Node: banner. Contents: []>, <TextNode: '\n'>, <Block Node: content. Contents: []>, <TextNode: '\n'>, <Block Node: footer. Contents: [<django.template.loader_tags.IncludeNode object at 0x7f5308cf7d30>]>, <TextNode: '\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f5309395e10>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f5309395828>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f5309395240>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f53093950f0>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f5309395dd8>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f5309395978>, <TextNode: '"></script>\n</body>\n</htm'>] |
/home/zerocool/.local/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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {'site_info': <Site: HEAD DEPARTMENT <br/> OF TOURISM AND CULTURAL HERITAGE <br/> OF TASHKENT CITY>, 'same_place_list': <TranslationQueryset [<Place: Ecobozor>, <Place: Atlas Mebel>, <Place: Mediapark>]>, 'view': <place.views.PlaceDetailView object at 0x7f5308d7b240>, 'object': <Place: Chorsu Bazaar>, 'place': <Place: Chorsu Bazaar>, 'current_language': 'en'}] |
self | <Block Node: content. Contents: []> |
/home/zerocool/.local/lib/python3.5/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: '\n\n '>, <django.template.library.SimpleNode object at 0x7f53094dbe48>, <TextNode: '\n\n <div class="establi'>, <Variable Node: banner_img>, <TextNode: ') no-repeat center fixed;'>, <Variable Node: request.META.HTTP_REFERER>, <TextNode: '">\n <span '>, <django.templatetags.i18n.TranslateNode object at 0x7f5308e08160>, <TextNode: '</span>\n </a>\n'>, <IfNode>, <TextNode: '\n </div>\n </div'>, <IfNode>, <TextNode: '"\n alt=""'>, <Variable Node: place.title>, <TextNode: '</h1>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f53071ffcc0>, <TextNode: '</h3>\n '>, <Variable Node: place.category.title>, <TextNode: '</p>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f53071ff1d0>, <TextNode: '</h3>\n '>, <Variable Node: place.address>, <TextNode: '</p>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f53071ff240>, <TextNode: '</h3>\n '>, <django.template.library.SimpleNode object at 0x7f53071ff198>, <TextNode: '\n '>, <Variable Node: phone>, <TextNode: '</p>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f53071ff390>, <TextNode: '</h1>\n '>, <Variable Node: place.description|safe>, <TextNode: '</p>\n '>, <ForNode: for place_img in place.images.all, tail_len: 3>, <TextNode: '\n </di'>, <ForNode: for tag in place.tags.all, tail_len: 3>, <TextNode: '\n </di'>, <IfNode>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f5308d93c50>, <TextNode: '\n </div>\n '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f5308cf7d68> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'site_info': <Site: HEAD DEPARTMENT <br/> OF TOURISM AND CULTURAL HERITAGE <br/> OF TASHKENT CITY>, 'same_place_list': <TranslationQueryset [<Place: Ecobozor>, <Place: Atlas Mebel>, <Place: Mediapark>]>, 'view': <place.views.PlaceDetailView object at 0x7f5308d7b240>, 'object': <Place: Chorsu Bazaar>, 'place': <Place: Chorsu Bazaar>, 'current_language': 'en'}] |
push | <Block Node: content. Contents: [<TextNode: '\n\n '>, <django.template.library.SimpleNode object at 0x7f53094dbe48>, <TextNode: '\n\n <div class="establi'>, <Variable Node: banner_img>, <TextNode: ') no-repeat center fixed;'>, <Variable Node: request.META.HTTP_REFERER>, <TextNode: '">\n <span '>, <django.templatetags.i18n.TranslateNode object at 0x7f5308e08160>, <TextNode: '</span>\n </a>\n'>, <IfNode>, <TextNode: '\n </div>\n </div'>, <IfNode>, <TextNode: '"\n alt=""'>, <Variable Node: place.title>, <TextNode: '</h1>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f53071ffcc0>, <TextNode: '</h3>\n '>, <Variable Node: place.category.title>, <TextNode: '</p>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f53071ff1d0>, <TextNode: '</h3>\n '>, <Variable Node: place.address>, <TextNode: '</p>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f53071ff240>, <TextNode: '</h3>\n '>, <django.template.library.SimpleNode object at 0x7f53071ff198>, <TextNode: '\n '>, <Variable Node: phone>, <TextNode: '</p>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f53071ff390>, <TextNode: '</h1>\n '>, <Variable Node: place.description|safe>, <TextNode: '</p>\n '>, <ForNode: for place_img in place.images.all, tail_len: 3>, <TextNode: '\n </di'>, <ForNode: for tag in place.tags.all, tail_len: 3>, <TextNode: '\n </di'>, <IfNode>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f5308d93c50>, <TextNode: '\n </div>\n '>]> |
self | <Block Node: content. Contents: []> |
/home/zerocool/.local/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(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '</span>\n </a>\n\n ' |
bits | ['\n\n ', '', '\n\n <div class="establishment-banner"\n style="background: url(', '/uploads/category/background/2.SAM_5911.jpg', ') no-repeat center fixed; background-size: cover;"\n' ' >\n' ' <div class="container fixed-items">\n' ' <a class="back-button" href="', '', '">\n' ' <span class="icon icon-arrow-left"></span>\n' ' <span class="text">', 'Back', '</span>\n </a>\n\n '] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'site_info': <Site: HEAD DEPARTMENT <br/> OF TOURISM AND CULTURAL HERITAGE <br/> OF TASHKENT CITY>, 'same_place_list': <TranslationQueryset [<Place: Ecobozor>, <Place: Atlas Mebel>, <Place: Mediapark>]>, 'view': <place.views.PlaceDetailView object at 0x7f5308d7b240>, 'object': <Place: Chorsu Bazaar>, 'place': <Place: Chorsu Bazaar>, 'current_language': 'en'}] |
node | <IfNode> |
self | [<TextNode: '\n\n '>, <django.template.library.SimpleNode object at 0x7f53094dbe48>, <TextNode: '\n\n <div class="establi'>, <Variable Node: banner_img>, <TextNode: ') no-repeat center fixed;'>, <Variable Node: request.META.HTTP_REFERER>, <TextNode: '">\n <span '>, <django.templatetags.i18n.TranslateNode object at 0x7f5308e08160>, <TextNode: '</span>\n </a>\n'>, <IfNode>, <TextNode: '\n </div>\n </div'>, <IfNode>, <TextNode: '"\n alt=""'>, <Variable Node: place.title>, <TextNode: '</h1>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f53071ffcc0>, <TextNode: '</h3>\n '>, <Variable Node: place.category.title>, <TextNode: '</p>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f53071ff1d0>, <TextNode: '</h3>\n '>, <Variable Node: place.address>, <TextNode: '</p>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f53071ff240>, <TextNode: '</h3>\n '>, <django.template.library.SimpleNode object at 0x7f53071ff198>, <TextNode: '\n '>, <Variable Node: phone>, <TextNode: '</p>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f53071ff390>, <TextNode: '</h1>\n '>, <Variable Node: place.description|safe>, <TextNode: '</p>\n '>, <ForNode: for place_img in place.images.all, tail_len: 3>, <TextNode: '\n </di'>, <ForNode: for tag in place.tags.all, tail_len: 3>, <TextNode: '\n </di'>, <IfNode>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f5308d93c50>, <TextNode: '\n </div>\n '>] |
/home/zerocool/.local/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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {'site_info': <Site: HEAD DEPARTMENT <br/> OF TOURISM AND CULTURAL HERITAGE <br/> OF TASHKENT CITY>, 'same_place_list': <TranslationQueryset [<Place: Ecobozor>, <Place: Atlas Mebel>, <Place: Mediapark>]>, 'view': <place.views.PlaceDetailView object at 0x7f5308d7b240>, 'object': <Place: Chorsu Bazaar>, 'place': <Place: Chorsu Bazaar>, 'current_language': 'en'}] |
self | <IfNode> |
/home/zerocool/.local/lib/python3.5/site-packages/django/template/defaulttags.py
in render
return NodeList(self)
def render(self, context):
for condition, nodelist in self.conditions_nodelists:
if condition is not None: # if / elif clause
try:
match = condition.eval(context)…
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
Variable | Value |
---|---|
condition | (literal <django.template.base.FilterExpression object at 0x7f5308e08b70>) |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'site_info': <Site: HEAD DEPARTMENT <br/> OF TOURISM AND CULTURAL HERITAGE <br/> OF TASHKENT CITY>, 'same_place_list': <TranslationQueryset [<Place: Ecobozor>, <Place: Atlas Mebel>, <Place: Mediapark>]>, 'view': <place.views.PlaceDetailView object at 0x7f5308d7b240>, 'object': <Place: Chorsu Bazaar>, 'place': <Place: Chorsu Bazaar>, 'current_language': 'en'}] |
nodelist | [<TextNode: '\n <button '>, <django.templatetags.i18n.TranslateNode object at 0x7f5308e080f0>, <TextNode: '\n </button'>, <django.template.loader_tags.IncludeNode object at 0x7f5308e087f0>, <TextNode: '\n '>] |
self | <IfNode> |
/home/zerocool/.local/lib/python3.5/site-packages/django/template/defaulttags.py
in eval
self.value = value
self.text = text # for better error messages
def display(self):
return self.text
def eval(self, context):
return self.value.resolve(context, ignore_failures=True)…
class TemplateIfParser(IfParser):
error_class = TemplateSyntaxError
def __init__(self, parser, *args, **kwargs):
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'site_info': <Site: HEAD DEPARTMENT <br/> OF TOURISM AND CULTURAL HERITAGE <br/> OF TASHKENT CITY>, 'same_place_list': <TranslationQueryset [<Place: Ecobozor>, <Place: Atlas Mebel>, <Place: Mediapark>]>, 'view': <place.views.PlaceDetailView object at 0x7f5308d7b240>, 'object': <Place: Chorsu Bazaar>, 'place': <Place: Chorsu Bazaar>, 'current_language': 'en'}] |
self | (literal <django.template.base.FilterExpression object at 0x7f5308e08b70>) |
/home/zerocool/.local/lib/python3.5/site-packages/django/template/base.py
in resolve
else:
arg_vals.append(arg.resolve(context))
if getattr(func, 'expects_localtime', False):
obj = template_localtime(obj, context.use_tz)
if getattr(func, 'needs_autoescape', False):
new_obj = func(obj, autoescape=context.autoescape, *arg_vals)
else:
new_obj = func(obj, *arg_vals)…
if getattr(func, 'is_safe', False) and isinstance(obj, SafeData):
obj = mark_safe(new_obj)
else:
obj = new_obj
return obj
Variable | Value |
---|---|
arg_vals | [] |
args | [] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'site_info': <Site: HEAD DEPARTMENT <br/> OF TOURISM AND CULTURAL HERITAGE <br/> OF TASHKENT CITY>, 'same_place_list': <TranslationQueryset [<Place: Ecobozor>, <Place: Atlas Mebel>, <Place: Mediapark>]>, 'view': <place.views.PlaceDetailView object at 0x7f5308d7b240>, 'object': <Place: Chorsu Bazaar>, 'place': <Place: Chorsu Bazaar>, 'current_language': 'en'}] |
func | <function place_panorama_exist at 0x7f53097b1f28> |
ignore_failures | True |
obj | <Place: Chorsu Bazaar> |
self | <django.template.base.FilterExpression object at 0x7f5308e08b70> |
/var/www/gotashkent/index/templatetags/site_info.py
in place_panorama_exist
clean_title = "".join([c for c in clean_title if c in allowed_chars]).strip().lower()
if not clean_title:
return False
uzbekistan360_panorama_url = 'http://%s.uzbekistan360.uz' % (clean_title)
# FOR NOW CHECK CONTENT BY TITLE , NO OTHER WAY
response = requests.get(uzbekistan360_panorama_url)…
response_title = BeautifulSoup(response.content, "html.parser").find('title').text
if clean_title in response_title.lower():
return True
return False
Variable | Value |
---|---|
allowed_chars | 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 \t\n\r\x0b\x0c' |
clean_title | 'chorsubazaar' |
place | <Place: Chorsu Bazaar> |
uzbekistan360_panorama_url | 'http://chorsubazaar.uzbekistan360.uz' |
/usr/lib/python3/dist-packages/requests/api.py
in get
:param params: (optional) Dictionary or bytes to be sent in the query string for the :class:`Request`.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:return: :class:`Response <Response>` object
:rtype: requests.Response
"""
kwargs.setdefault('allow_redirects', True)
return request('get', url, params=params, **kwargs)…
def options(url, **kwargs):
"""Sends a OPTIONS request.
:param url: URL for the new :class:`Request` object.
Variable | Value |
---|---|
kwargs | {'allow_redirects': True} |
params | None |
url | 'http://chorsubazaar.uzbekistan360.uz' |
/usr/lib/python3/dist-packages/requests/api.py
in request
<Response [200]>
"""
# By using the 'with' statement we are sure the session is closed, thus we
# avoid leaving sockets open which can trigger a ResourceWarning in some
# cases, and look like a memory leak in others.
with sessions.Session() as session:
return session.request(method=method, url=url, **kwargs)…
def get(url, params=None, **kwargs):
"""Sends a GET request.
:param url: URL for the new :class:`Request` object.
Variable | Value |
---|---|
kwargs | {'allow_redirects': True, 'params': None} |
method | 'get' |
session | <requests.sessions.Session object at 0x7f5309368dd8> |
url | 'http://chorsubazaar.uzbekistan360.uz' |
/usr/lib/python3/dist-packages/requests/sessions.py
in request
# Send the request.
send_kwargs = {
'timeout': timeout,
'allow_redirects': allow_redirects,
}
send_kwargs.update(settings)
resp = self.send(prep, **send_kwargs)…
return resp
def get(self, url, **kwargs):
"""Sends a GET request. Returns :class:`Response` object.
Variable | Value |
---|---|
allow_redirects | True |
auth | None |
cert | None |
cookies | None |
data | None |
files | None |
headers | None |
hooks | None |
json | None |
method | 'get' |
params | None |
prep | <PreparedRequest [GET]> |
proxies | {} |
req | <Request [GET]> |
self | <requests.sessions.Session object at 0x7f5309368dd8> |
send_kwargs | {'allow_redirects': True, 'cert': None, 'proxies': OrderedDict(), 'stream': False, 'timeout': None, 'verify': True} |
settings | {'cert': None, 'proxies': OrderedDict(), 'stream': False, 'verify': True} |
stream | None |
timeout | None |
url | 'http://chorsubazaar.uzbekistan360.uz' |
verify | None |
/usr/lib/python3/dist-packages/requests/sessions.py
in send
# Get the appropriate adapter to use
adapter = self.get_adapter(url=request.url)
# Start time (approximately) of the request
start = datetime.utcnow()
# Send the request
r = adapter.send(request, **kwargs)…
# Total elapsed time of the request (approximately)
r.elapsed = datetime.utcnow() - start
# Response manipulation hooks
r = dispatch_hook('response', hooks, r, **kwargs)
Variable | Value |
---|---|
adapter | <requests.adapters.HTTPAdapter object at 0x7f530a338cf8> |
allow_redirects | True |
checked_urls | set() |
hooks | {'response': []} |
kwargs | {'cert': None, 'proxies': OrderedDict(), 'stream': False, 'timeout': None, 'verify': True} |
request | <PreparedRequest [GET]> |
self | <requests.sessions.Session object at 0x7f5309368dd8> |
start | datetime.datetime(2024, 4, 18, 16, 27, 44, 12214) |
stream | False |
/usr/lib/python3/dist-packages/requests/adapters.py
in send
# TODO: Remove this in 3.0.0: see #2811
if not isinstance(e.reason, NewConnectionError):
raise ConnectTimeout(e, request=request)
if isinstance(e.reason, ResponseError):
raise RetryError(e, request=request)
raise ConnectionError(e, request=request)…
except ClosedPoolError as e:
raise ConnectionError(e, request=request)
except _ProxyError as e:
raise ProxyError(e)
Variable | Value |
---|---|
cert | None |
chunked | False |
conn | <requests.packages.urllib3.connectionpool.HTTPConnectionPool object at 0x7f5308be8358> |
proxies | OrderedDict() |
request | <PreparedRequest [GET]> |
self | <requests.adapters.HTTPAdapter object at 0x7f530a338cf8> |
stream | False |
timeout | <requests.packages.urllib3.util.timeout.Timeout object at 0x7f5308be8d30> |
url | '/' |
verify | True |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CSRF_COOKIE | 'g4FcznrxQn1lIwoYavYcwJgQO9I5x5AlL9FAkY8SzbNZxyr7JCzlyQZu76l5Zity' |
CSRF_COOKIE_USED | True |
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'visittashkent.uz' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '3.128.205.109, 192.168.10.251' |
HTTP_X_FORWARDED_PROTO | 'http' |
HTTP_X_REAL_IP | '192.168.10.251' |
PATH_INFO | '/en/place/552' |
QUERY_STRING | '' |
RAW_URI | '/en/place/552' |
REMOTE_ADDR | "b''" |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'visittashkent.uz' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/19.4.5' |
gunicorn.socket | <socket.socket fd=11, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/var/www/gotashkent.sock> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f53094e60b8> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7f53094e6390> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
goTashkent.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['127.0.0.1', '0.0.0.0', 'tourism.tashkent.uz', 'visittashkent.uz'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/var/www/gotashkent' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CELERY_BROKER_URL | 'amqp://localhost' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
CURRENCY_EXCHANGE_API | '********************' |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': '127.0.0.1', 'NAME': 'gotashkent', 'OPTIONS': {'init_command': 'ALTER DATABASE gotashkent CHARACTER ' 'SET utf8 COLLATE utf8_general_ci; ' 'SET sql_mode="STRICT_ALL_TABLES";'}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'gotashkent'}} |
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_HOST | 'www' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
ELASTICSEARCH_DSL | {'default': {'hosts': '127.0.0.1:9200'}} |
EL_PAGINATION_PAGE_OUT_OF_RANGE_404 | True |
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 |
EXTRA_LANG_INFO | {'uz': {'bidi': False, 'code': 'uz', 'name': 'Uzbek', 'name_local': 'Uzbek', 'name_translated': 'Uzbek'}} |
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 | 420 |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
HVAD | {'AUTOLOAD_TRANSLATIONS': True} |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'mptt', 'django.contrib.humanize', 'django_summernote', 'index.apps.IndexConfig', 'banner.apps.BannerConfig', 'place.apps.PlaceConfig', 'feedback.apps.FeedbackConfig', 'content.apps.ContentConfig', 'gallery.apps.GalleryConfig', 'tours.apps.ToursConfig', 'backend.apps.BackendConfig', 'navigation.apps.NavigationConfig', 'site_settings.apps.SiteSettingsConfig', 'django_hosts', 'searchableselect', 'el_pagination', 'hvad', 'appeal'] |
INTERNAL_IPS | [] |
LANGUAGES | [('ru', 'Ру'), ('en', 'En'), ('uz', 'Uz')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur', 'uz'] |
LANGUAGE_CODE | 'en-en' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANG_INFO | {'af': {'bidi': False, 'code': 'af', 'name': 'Afrikaans', 'name_local': 'Afrikaans'}, 'ar': {'bidi': True, 'code': 'ar', 'name': 'Arabic', 'name_local': 'العربيّة'}, 'ast': {'bidi': False, 'code': 'ast', 'name': 'Asturian', 'name_local': 'asturianu'}, 'az': {'bidi': True, 'code': 'az', 'name': 'Azerbaijani', 'name_local': 'Azərbaycanca'}, 'be': {'bidi': False, 'code': 'be', 'name': 'Belarusian', 'name_local': 'беларуская'}, 'bg': {'bidi': False, 'code': 'bg', 'name': 'Bulgarian', 'name_local': 'български'}, 'bn': {'bidi': False, 'code': 'bn', 'name': 'Bengali', 'name_local': 'বাংলা'}, 'br': {'bidi': False, 'code': 'br', 'name': 'Breton', 'name_local': 'brezhoneg'}, 'bs': {'bidi': False, 'code': 'bs', 'name': 'Bosnian', 'name_local': 'bosanski'}, 'ca': {'bidi': False, 'code': 'ca', 'name': 'Catalan', 'name_local': 'català'}, 'cs': {'bidi': False, 'code': 'cs', 'name': 'Czech', 'name_local': 'česky'}, 'cy': {'bidi': False, 'code': 'cy', 'name': 'Welsh', 'name_local': 'Cymraeg'}, 'da': {'bidi': False, 'code': 'da', 'name': 'Danish', 'name_local': 'dansk'}, 'de': {'bidi': False, 'code': 'de', 'name': 'German', 'name_local': 'Deutsch'}, 'dsb': {'bidi': False, 'code': 'dsb', 'name': 'Lower Sorbian', 'name_local': 'dolnoserbski'}, 'el': {'bidi': False, 'code': 'el', 'name': 'Greek', 'name_local': 'Ελληνικά'}, 'en': {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}, 'en-au': {'bidi': False, 'code': 'en-au', 'name': 'Australian English', 'name_local': 'Australian English'}, 'en-gb': {'bidi': False, 'code': 'en-gb', 'name': 'British English', 'name_local': 'British English'}, 'eo': {'bidi': False, 'code': 'eo', 'name': 'Esperanto', 'name_local': 'Esperanto'}, 'es': {'bidi': False, 'code': 'es', 'name': 'Spanish', 'name_local': 'español'}, 'es-ar': {'bidi': False, 'code': 'es-ar', 'name': 'Argentinian Spanish', 'name_local': 'español de Argentina'}, 'es-co': {'bidi': False, 'code': 'es-co', 'name': 'Colombian Spanish', 'name_local': 'español de Colombia'}, 'es-mx': {'bidi': False, 'code': 'es-mx', 'name': 'Mexican Spanish', 'name_local': 'español de Mexico'}, 'es-ni': {'bidi': False, 'code': 'es-ni', 'name': 'Nicaraguan Spanish', 'name_local': 'español de Nicaragua'}, 'es-ve': {'bidi': False, 'code': 'es-ve', 'name': 'Venezuelan Spanish', 'name_local': 'español de Venezuela'}, 'et': {'bidi': False, 'code': 'et', 'name': 'Estonian', 'name_local': 'eesti'}, 'eu': {'bidi': False, 'code': 'eu', 'name': 'Basque', 'name_local': 'Basque'}, 'fa': {'bidi': True, 'code': 'fa', 'name': 'Persian', 'name_local': 'فارسی'}, 'fi': {'bidi': False, 'code': 'fi', 'name': 'Finnish', 'name_local': 'suomi'}, 'fr': {'bidi': False, 'code': 'fr', 'name': 'French', 'name_local': 'français'}, 'fy': {'bidi': False, 'code': 'fy', 'name': 'Frisian', 'name_local': 'frysk'}, 'ga': {'bidi': False, 'code': 'ga', 'name': 'Irish', 'name_local': 'Gaeilge'}, 'gd': {'bidi': False, 'code': 'gd', 'name': 'Scottish Gaelic', 'name_local': 'Gàidhlig'}, 'gl': {'bidi': False, 'code': 'gl', 'name': 'Galician', 'name_local': 'galego'}, 'he': {'bidi': True, 'code': 'he', 'name': 'Hebrew', 'name_local': 'עברית'}, 'hi': {'bidi': False, 'code': 'hi', 'name': 'Hindi', 'name_local': 'Hindi'}, 'hr': {'bidi': False, 'code': 'hr', 'name': 'Croatian', 'name_local': 'Hrvatski'}, 'hsb': {'bidi': False, 'code': 'hsb', 'name': 'Upper Sorbian', 'name_local': 'hornjoserbsce'}, 'hu': {'bidi': False, 'code': 'hu', 'name': 'Hungarian', 'name_local': 'Magyar'}, 'hy': {'bidi': False, 'code': 'hy', 'name': 'Armenian', 'name_local': 'հայերեն'}, 'ia': {'bidi': False, 'code': 'ia', 'name': 'Interlingua', 'name_local': 'Interlingua'}, 'id': {'bidi': False, 'code': 'id', 'name': 'Indonesian', 'name_local': 'Bahasa Indonesia'}, 'io': {'bidi': False, 'code': 'io', 'name': 'Ido', 'name_local': 'ido'}, 'is': {'bidi': False, 'code': 'is', 'name': 'Icelandic', 'name_local': 'Íslenska'}, 'it': {'bidi': False, 'code': 'it', 'name': 'Italian', 'name_local': 'italiano'}, 'ja': {'bidi': False, 'code': 'ja', 'name': 'Japanese', 'name_local': '日本語'}, 'ka': {'bidi': False, 'code': 'ka', 'name': 'Georgian', 'name_local': 'ქართული'}, 'kab': {'bidi': False, 'code': 'kab', 'name': 'Kabyle', 'name_local': 'taqbaylit'}, 'kk': {'bidi': False, 'code': 'kk', 'name': 'Kazakh', 'name_local': 'Қазақ'}, 'km': {'bidi': False, 'code': 'km', 'name': 'Khmer', 'name_local': 'Khmer'}, 'kn': {'bidi': False, 'code': 'kn', 'name': 'Kannada', 'name_local': 'Kannada'}, 'ko': {'bidi': False, 'code': 'ko', 'name': 'Korean', 'name_local': '한국어'}, 'lb': {'bidi': False, 'code': 'lb', 'name': 'Luxembourgish', 'name_local': 'Lëtzebuergesch'}, 'lt': {'bidi': False, 'code': 'lt', 'name': 'Lithuanian', 'name_local': 'Lietuviškai'}, 'lv': {'bidi': False, 'code': 'lv', 'name': 'Latvian', 'name_local': 'latviešu'}, 'mk': {'bidi': False, 'code': 'mk', 'name': 'Macedonian', 'name_local': 'Македонски'}, 'ml': {'bidi': False, 'code': 'ml', 'name': 'Malayalam', 'name_local': 'Malayalam'}, 'mn': {'bidi': False, 'code': 'mn', 'name': 'Mongolian', 'name_local': 'Mongolian'}, 'mr': {'bidi': False, 'code': 'mr', 'name': 'Marathi', 'name_local': 'मराठी'}, 'my': {'bidi': False, 'code': 'my', 'name': 'Burmese', 'name_local': 'မြန်မာဘာသာ'}, 'nb': {'bidi': False, 'code': 'nb', 'name': 'Norwegian Bokmal', 'name_local': 'norsk (bokmål)'}, 'ne': {'bidi': False, 'code': 'ne', 'name': 'Nepali', 'name_local': 'नेपाली'}, 'nl': {'bidi': False, 'code': 'nl', 'name': 'Dutch', 'name_local': 'Nederlands'}, 'nn': {'bidi': False, 'code': 'nn', 'name': 'Norwegian Nynorsk', 'name_local': 'norsk (nynorsk)'}, 'no': {'bidi': False, 'code': 'no', 'name': 'Norwegian', 'name_local': 'norsk'}, 'os': {'bidi': False, 'code': 'os', 'name': 'Ossetic', 'name_local': 'Ирон'}, 'pa': {'bidi': False, 'code': 'pa', 'name': 'Punjabi', 'name_local': 'Punjabi'}, 'pl': {'bidi': False, 'code': 'pl', 'name': 'Polish', 'name_local': 'polski'}, 'pt': {'bidi': False, 'code': 'pt', 'name': 'Portuguese', 'name_local': 'Português'}, 'pt-br': {'bidi': False, 'code': 'pt-br', 'name': 'Brazilian Portuguese', 'name_local': 'Português Brasileiro'}, 'ro': {'bidi': False, 'code': 'ro', 'name': 'Romanian', 'name_local': 'Română'}, 'ru': {'bidi': False, 'code': 'ru', 'name': 'Russian', 'name_local': 'Русский', 'name_translated': 'Russian'}, 'sk': {'bidi': False, 'code': 'sk', 'name': 'Slovak', 'name_local': 'Slovensky'}, 'sl': {'bidi': False, 'code': 'sl', 'name': 'Slovenian', 'name_local': 'Slovenščina'}, 'sq': {'bidi': False, 'code': 'sq', 'name': 'Albanian', 'name_local': 'shqip'}, 'sr': {'bidi': False, 'code': 'sr', 'name': 'Serbian', 'name_local': 'српски'}, 'sr-latn': {'bidi': False, 'code': 'sr-latn', 'name': 'Serbian Latin', 'name_local': 'srpski (latinica)'}, 'sv': {'bidi': False, 'code': 'sv', 'name': 'Swedish', 'name_local': 'svenska'}, 'sw': {'bidi': False, 'code': 'sw', 'name': 'Swahili', 'name_local': 'Kiswahili'}, 'ta': {'bidi': False, 'code': 'ta', 'name': 'Tamil', 'name_local': 'தமிழ்'}, 'te': {'bidi': False, 'code': 'te', 'name': 'Telugu', 'name_local': 'తెలుగు'}, 'th': {'bidi': False, 'code': 'th', 'name': 'Thai', 'name_local': 'ภาษาไทย'}, 'tr': {'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe'}, 'tt': {'bidi': False, 'code': 'tt', 'name': 'Tatar', 'name_local': 'Татарча'}, 'udm': {'bidi': False, 'code': 'udm', 'name': 'Udmurt', 'name_local': 'Удмурт'}, 'uk': {'bidi': False, 'code': 'uk', 'name': 'Ukrainian', 'name_local': 'Українська'}, 'ur': {'bidi': True, 'code': 'ur', 'name': 'Urdu', 'name_local': 'اردو'}, 'uz': {'bidi': False, 'code': 'uz', 'name': 'Uzbek', 'name_local': 'Uzbek', 'name_translated': 'Uzbek'}, 'vi': {'bidi': False, 'code': 'vi', 'name': 'Vietnamese', 'name_local': 'Tiếng Việt'}, 'zh-cn': {'fallback': ['zh-hans']}, 'zh-hans': {'bidi': False, 'code': 'zh-hans', 'name': 'Simplified Chinese', 'name_local': '简体中文'}, 'zh-hant': {'bidi': False, 'code': 'zh-hant', 'name': 'Traditional Chinese', 'name_local': '繁體中文'}, 'zh-hk': {'fallback': ['zh-hant']}, 'zh-mo': {'fallback': ['zh-hant']}, 'zh-my': {'fallback': ['zh-hans']}, 'zh-sg': {'fallback': ['zh-hans']}, 'zh-tw': {'fallback': ['zh-hant']}} |
LOCALE_PATHS | ('/var/www/gotashkent/translations',) |
LOGGING | {'disable_existing_loggers': False, 'formatters': {'simple': {'format': '%(levelname)s %(message)s'}}, 'handlers': {'log_to_stdout': {'class': 'logging.StreamHandler', 'formatter': 'simple', 'level': 'DEBUG'}}, 'loggers': {'main': {'handlers': ['log_to_stdout'], 'level': 'DEBUG', 'propagate': True}}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/var/www/gotashkent/uploads' |
MEDIA_URL | '/uploads/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django_hosts.middleware.HostsRequestMiddleware', 'django.middleware.locale.LocaleMiddleware', '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', 'django_hosts.middleware.HostsResponseMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_HOSTCONF | 'goTashkent.hosts' |
ROOT_URLCONF | 'goTashkent.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_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'goTashkent.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
STATICFILES_DIRS | ('/var/www/gotashkent/index/assets',) |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/var/www/gotashkent/static' |
STATIC_URL | '/static/' |
SUMMERNOTE_CONFIG | {'base_css': ('//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css',), 'base_js': ('//code.jquery.com/jquery-3.3.1.min.js', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'), 'default_css': ('summernote/summernote.css', 'summernote/django_summernote.css'), 'default_js': ('summernote/jquery.ui.widget.js', 'summernote/jquery.iframe-transport.js', 'summernote/jquery.fileupload.js', 'summernote/summernote.min.js', 'summernote/ResizeSensor.js'), 'disable_attachment': True, 'js': ('/static/admin/js/summernote.js',), 'summernote': {'airMode': False, 'direction': 'ltr', 'height': '480', 'iframe': True, 'lang': 'ru-RU', 'toolbar': [['style', ['style']], ['font', ['bold', 'italic', 'underline', 'clear']], ['para', ['ul', 'ol', 'height']], ['insert', ['link', 'picture', 'hr']], ['misc', ['fullscreen', 'codeview', 'help']]], 'width': '100%'}} |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/www/gotashkent/backend/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']}}] |
TEMPLATE_DEBUG | True |
TEMPLATE_DIRS | ('/index/templates/',) |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Asia/Tashkent' |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WEATHER_API | '********************' |
WSGI_APPLICATION | 'goTashkent.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.