(2003, "Can't connect to MySQL server on '0.0.0.0:3306' (111)")
| Request Method: | GET |
|---|---|
| Request URL: | http://www.fpjbg.com/www.yupobearing.com/sitemap.xml |
| Django Version: | 3.2.7 |
| Exception Type: | OperationalError |
| Exception Value: | (2003, "Can't connect to MySQL server on '0.0.0.0:3306' (111)") |
| Exception Location: | /www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/MySQLdb/connections.py, line 185, in __init__ |
| Python Executable: | /www/wwwroot/www.yupobearing.com/youpu_venv/bin/uwsgi |
| Python Version: | 3.8.1 |
| Python Path: | ['.', '', '/root/.pyenv/versions/3.8.1/lib/python38.zip', '/root/.pyenv/versions/3.8.1/lib/python3.8', '/root/.pyenv/versions/3.8.1/lib/python3.8/lib-dynload', '/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages'] |
| Server time: | Mon, 02 Mar 2026 09:04:43 +0800 |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/db/backends/base/base.py, line 219, in ensure_connection
)
@async_unsafe
def ensure_connection(self):
"""Guarantee that a connection to the database is established."""
if self.connection is None:
with self.wrap_database_errors:
self.connect()…
# ##### Backend-specific wrappers for PEP-249 connection methods #####
def _prepare_cursor(self, cursor):
"""
Validate the connection is usable and perform database cursor wrapping.
| Variable | Value |
|---|---|
| self | <django.db.backends.mysql.base.DatabaseWrapper object at 0x7f9bc4740910> |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/utils/asyncio.py, line 26, in inner
event_loop = asyncio.get_event_loop()
except RuntimeError:
pass
else:
if event_loop.is_running():
raise SynchronousOnlyOperation(message)
# Pass onwards.
return func(*args, **kwargs)…
return inner
# If the message is actually a function, then be a no-arguments decorator.
if callable(message):
func = message
message = 'You cannot call this from an async context - use a thread or sync_to_async.'
return decorator(func)
| Variable | Value |
|---|---|
| args | (<django.db.backends.mysql.base.DatabaseWrapper object at 0x7f9bc4740910>,) |
| event_loop | <_UnixSelectorEventLoop running=False closed=False debug=False> |
| func | <function BaseDatabaseWrapper.connect at 0x7f9bc47131f0> |
| kwargs | {} |
| message | 'You cannot call this from an async context - use a thread or sync_to_async.' |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/db/backends/base/base.py, line 200, in connect
# Reset parameters defining when to close the connection
max_age = self.settings_dict['CONN_MAX_AGE']
self.close_at = None if max_age is None else time.monotonic() + max_age
self.closed_in_transaction = False
self.errors_occurred = False
# Establish the connection
conn_params = self.get_connection_params()
self.connection = self.get_new_connection(conn_params)…
self.set_autocommit(self.settings_dict['AUTOCOMMIT'])
self.init_connection_state()
connection_created.send(sender=self.__class__, connection=self)
self.run_on_commit = []
| Variable | Value |
|---|---|
| conn_params | {'charset': 'utf8',
'client_flag': 2,
'conv': {0: <class 'decimal.Decimal'>,
1: <class 'int'>,
2: <class 'int'>,
3: <class 'int'>,
4: <class 'float'>,
5: <class 'float'>,
7: <function DateTime_or_None at 0x7f9bc4717f70>,
8: <class 'int'>,
9: <class 'int'>,
10: <function Date_or_None at 0x7f9bc4723160>,
11: <function typecast_time at 0x7f9bc4f96af0>,
12: <function DateTime_or_None at 0x7f9bc4717f70>,
13: <class 'int'>,
15: <class 'bytes'>,
245: <class 'bytes'>,
246: <class 'decimal.Decimal'>,
249: <class 'bytes'>,
250: <class 'bytes'>,
251: <class 'bytes'>,
252: <class 'bytes'>,
253: <class 'bytes'>,
254: <class 'bytes'>,
<class 'bool'>: <function Bool2Str at 0x7f9bc4723790>,
<class 'float'>: <function Float2Str at 0x7f9bc47239d0>,
<class 'int'>: <function Thing2Str at 0x7f9bc4723940>,
<class 'NoneType'>: <function None2NULL at 0x7f9bc4723a60>,
<class 'set'>: <function Set2Str at 0x7f9bc47238b0>,
<class 'array.array'>: <function array2Str at 0x7f9bc4723c10>,
<class 'decimal.Decimal'>: <function Decimal2Literal at 0x7f9bc4723b80>,
<class 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f9bc4723280>,
<class 'datetime.datetime'>: <function DateTime2literal at 0x7f9bc47231f0>,
<class 'datetime.date'>: <function Thing2Literal at 0x7f9bc4723af0>},
'database': 'www_yupobearing_',
'host': '0.0.0.0',
'password': 'yNkAaiYJmpxnbydW',
'port': 3306,
'user': 'www_yupobearing_'} |
| max_age | 0 |
| self | <django.db.backends.mysql.base.DatabaseWrapper object at 0x7f9bc4740910> |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/utils/asyncio.py, line 26, in inner
event_loop = asyncio.get_event_loop()
except RuntimeError:
pass
else:
if event_loop.is_running():
raise SynchronousOnlyOperation(message)
# Pass onwards.
return func(*args, **kwargs)…
return inner
# If the message is actually a function, then be a no-arguments decorator.
if callable(message):
func = message
message = 'You cannot call this from an async context - use a thread or sync_to_async.'
return decorator(func)
| Variable | Value |
|---|---|
| args | (<django.db.backends.mysql.base.DatabaseWrapper object at 0x7f9bc4740910>,
{'charset': 'utf8',
'client_flag': 2,
'conv': {0: <class 'decimal.Decimal'>,
1: <class 'int'>,
2: <class 'int'>,
3: <class 'int'>,
4: <class 'float'>,
5: <class 'float'>,
7: <function DateTime_or_None at 0x7f9bc4717f70>,
8: <class 'int'>,
9: <class 'int'>,
10: <function Date_or_None at 0x7f9bc4723160>,
11: <function typecast_time at 0x7f9bc4f96af0>,
12: <function DateTime_or_None at 0x7f9bc4717f70>,
13: <class 'int'>,
15: <class 'bytes'>,
245: <class 'bytes'>,
246: <class 'decimal.Decimal'>,
249: <class 'bytes'>,
250: <class 'bytes'>,
251: <class 'bytes'>,
252: <class 'bytes'>,
253: <class 'bytes'>,
254: <class 'bytes'>,
<class 'bool'>: <function Bool2Str at 0x7f9bc4723790>,
<class 'float'>: <function Float2Str at 0x7f9bc47239d0>,
<class 'int'>: <function Thing2Str at 0x7f9bc4723940>,
<class 'NoneType'>: <function None2NULL at 0x7f9bc4723a60>,
<class 'set'>: <function Set2Str at 0x7f9bc47238b0>,
<class 'array.array'>: <function array2Str at 0x7f9bc4723c10>,
<class 'decimal.Decimal'>: <function Decimal2Literal at 0x7f9bc4723b80>,
<class 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f9bc4723280>,
<class 'datetime.datetime'>: <function DateTime2literal at 0x7f9bc47231f0>,
<class 'datetime.date'>: <function Thing2Literal at 0x7f9bc4723af0>},
'database': 'www_yupobearing_',
'host': '0.0.0.0',
'password': 'yNkAaiYJmpxnbydW',
'port': 3306,
'user': 'www_yupobearing_'}) |
| event_loop | <_UnixSelectorEventLoop running=False closed=False debug=False> |
| func | <function DatabaseWrapper.get_new_connection at 0x7f9bc31e48b0> |
| kwargs | {} |
| message | 'You cannot call this from an async context - use a thread or sync_to_async.' |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/db/backends/mysql/base.py, line 234, in get_new_connection
))
self.isolation_level = isolation_level
kwargs.update(options)
return kwargs
@async_unsafe
def get_new_connection(self, conn_params):
connection = Database.connect(**conn_params)…
# bytes encoder in mysqlclient doesn't work and was added only to
# prevent KeyErrors in Django < 2.0. We can remove this workaround when
# mysqlclient 2.1 becomes the minimal mysqlclient supported by Django.
# See https://github.com/PyMySQL/mysqlclient/issues/489
if connection.encoders.get(bytes) is bytes:
connection.encoders.pop(bytes)
| Variable | Value |
|---|---|
| conn_params | {'charset': 'utf8',
'client_flag': 2,
'conv': {0: <class 'decimal.Decimal'>,
1: <class 'int'>,
2: <class 'int'>,
3: <class 'int'>,
4: <class 'float'>,
5: <class 'float'>,
7: <function DateTime_or_None at 0x7f9bc4717f70>,
8: <class 'int'>,
9: <class 'int'>,
10: <function Date_or_None at 0x7f9bc4723160>,
11: <function typecast_time at 0x7f9bc4f96af0>,
12: <function DateTime_or_None at 0x7f9bc4717f70>,
13: <class 'int'>,
15: <class 'bytes'>,
245: <class 'bytes'>,
246: <class 'decimal.Decimal'>,
249: <class 'bytes'>,
250: <class 'bytes'>,
251: <class 'bytes'>,
252: <class 'bytes'>,
253: <class 'bytes'>,
254: <class 'bytes'>,
<class 'bool'>: <function Bool2Str at 0x7f9bc4723790>,
<class 'float'>: <function Float2Str at 0x7f9bc47239d0>,
<class 'int'>: <function Thing2Str at 0x7f9bc4723940>,
<class 'NoneType'>: <function None2NULL at 0x7f9bc4723a60>,
<class 'set'>: <function Set2Str at 0x7f9bc47238b0>,
<class 'array.array'>: <function array2Str at 0x7f9bc4723c10>,
<class 'decimal.Decimal'>: <function Decimal2Literal at 0x7f9bc4723b80>,
<class 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f9bc4723280>,
<class 'datetime.datetime'>: <function DateTime2literal at 0x7f9bc47231f0>,
<class 'datetime.date'>: <function Thing2Literal at 0x7f9bc4723af0>},
'database': 'www_yupobearing_',
'host': '0.0.0.0',
'password': 'yNkAaiYJmpxnbydW',
'port': 3306,
'user': 'www_yupobearing_'} |
| self | <django.db.backends.mysql.base.DatabaseWrapper object at 0x7f9bc4740910> |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/MySQLdb/__init__.py, line 123, in Connect
return bytes(x)
def Connect(*args, **kwargs):
"""Factory function for connections.Connection."""
from MySQLdb.connections import Connection
return Connection(*args, **kwargs)…
connect = Connection = Connect
__all__ = [
"BINARY",
| Variable | Value |
|---|---|
| Connection | <class 'MySQLdb.connections.Connection'> |
| args | () |
| kwargs | {'charset': 'utf8',
'client_flag': 2,
'conv': {0: <class 'decimal.Decimal'>,
1: <class 'int'>,
2: <class 'int'>,
3: <class 'int'>,
4: <class 'float'>,
5: <class 'float'>,
7: <function DateTime_or_None at 0x7f9bc4717f70>,
8: <class 'int'>,
9: <class 'int'>,
10: <function Date_or_None at 0x7f9bc4723160>,
11: <function typecast_time at 0x7f9bc4f96af0>,
12: <function DateTime_or_None at 0x7f9bc4717f70>,
13: <class 'int'>,
15: <class 'bytes'>,
245: <class 'bytes'>,
246: <class 'decimal.Decimal'>,
249: <class 'bytes'>,
250: <class 'bytes'>,
251: <class 'bytes'>,
252: <class 'bytes'>,
253: <class 'bytes'>,
254: <class 'bytes'>,
<class 'bool'>: <function Bool2Str at 0x7f9bc4723790>,
<class 'float'>: <function Float2Str at 0x7f9bc47239d0>,
<class 'int'>: <function Thing2Str at 0x7f9bc4723940>,
<class 'NoneType'>: <function None2NULL at 0x7f9bc4723a60>,
<class 'set'>: <function Set2Str at 0x7f9bc47238b0>,
<class 'array.array'>: <function array2Str at 0x7f9bc4723c10>,
<class 'decimal.Decimal'>: <function Decimal2Literal at 0x7f9bc4723b80>,
<class 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f9bc4723280>,
<class 'datetime.datetime'>: <function DateTime2literal at 0x7f9bc47231f0>,
<class 'datetime.date'>: <function Thing2Literal at 0x7f9bc4723af0>},
'database': 'www_yupobearing_',
'host': '0.0.0.0',
'password': 'yNkAaiYJmpxnbydW',
'port': 3306,
'user': 'www_yupobearing_'} |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/MySQLdb/connections.py, line 185, in __init__
if multi_statements:
client_flag |= CLIENT.MULTI_STATEMENTS
kwargs2["client_flag"] = client_flag
# PEP-249 requires autocommit to be initially off
autocommit = kwargs2.pop("autocommit", False)super().__init__(*args, **kwargs2)…
self.cursorclass = cursorclass
self.encoders = {k: v for k, v in conv.items() if type(k) is not int}self._server_version = tuple(
[numeric_part(n) for n in self.get_server_info().split(".")[:2]])
| Variable | Value |
|---|---|
| CLIENT | <module 'MySQLdb.constants.CLIENT' from '/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/MySQLdb/constants/CLIENT.py'> |
| FIELD_TYPE | <module 'MySQLdb.constants.FIELD_TYPE' from '/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/MySQLdb/constants/FIELD_TYPE.py'> |
| __class__ | <class 'MySQLdb.connections.Connection'> |
| _bytes_or_str | ((128, <class 'bytes'>), (None, <class 'str'>)) |
| args | () |
| autocommit | False |
| charset | 'utf8' |
| client_flag | 196610 |
| conv | {0: <class 'decimal.Decimal'>,
1: <class 'int'>,
2: <class 'int'>,
3: <class 'int'>,
4: <class 'float'>,
5: <class 'float'>,
7: <function DateTime_or_None at 0x7f9bc4717f70>,
8: <class 'int'>,
9: <class 'int'>,
10: <function Date_or_None at 0x7f9bc4723160>,
11: <function typecast_time at 0x7f9bc4f96af0>,
12: <function DateTime_or_None at 0x7f9bc4717f70>,
13: <class 'int'>,
15: <class 'bytes'>,
245: <class 'bytes'>,
246: <class 'decimal.Decimal'>,
249: <class 'bytes'>,
250: <class 'bytes'>,
251: <class 'bytes'>,
252: <class 'bytes'>,
253: <class 'bytes'>,
254: <class 'bytes'>,
<class 'bool'>: <function Bool2Str at 0x7f9bc4723790>,
<class 'float'>: <function Float2Str at 0x7f9bc47239d0>,
<class 'int'>: <function Thing2Str at 0x7f9bc4723940>,
<class 'NoneType'>: <function None2NULL at 0x7f9bc4723a60>,
<class 'set'>: <function Set2Str at 0x7f9bc47238b0>,
<class 'array.array'>: <function array2Str at 0x7f9bc4723c10>,
<class 'decimal.Decimal'>: <function Decimal2Literal at 0x7f9bc4723b80>,
<class 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f9bc4723280>,
<class 'datetime.datetime'>: <function DateTime2literal at 0x7f9bc47231f0>,
<class 'datetime.date'>: <function Thing2Literal at 0x7f9bc4723af0>} |
| conv2 | {0: <class 'decimal.Decimal'>,
1: <class 'int'>,
2: <class 'int'>,
3: <class 'int'>,
4: <class 'float'>,
5: <class 'float'>,
7: <function DateTime_or_None at 0x7f9bc4717f70>,
8: <class 'int'>,
9: <class 'int'>,
10: <function Date_or_None at 0x7f9bc4723160>,
11: <function typecast_time at 0x7f9bc4f96af0>,
12: <function DateTime_or_None at 0x7f9bc4717f70>,
13: <class 'int'>,
15: <class 'bytes'>,
245: <class 'bytes'>,
246: <class 'decimal.Decimal'>,
249: <class 'bytes'>,
250: <class 'bytes'>,
251: <class 'bytes'>,
252: <class 'bytes'>,
253: <class 'bytes'>,
254: <class 'bytes'>,
<class 'bool'>: <function Bool2Str at 0x7f9bc4723790>,
<class 'float'>: <function Float2Str at 0x7f9bc47239d0>,
<class 'int'>: <function Thing2Str at 0x7f9bc4723940>,
<class 'NoneType'>: <function None2NULL at 0x7f9bc4723a60>,
<class 'set'>: <function Set2Str at 0x7f9bc47238b0>,
<class 'array.array'>: <function array2Str at 0x7f9bc4723c10>,
<class 'decimal.Decimal'>: <function Decimal2Literal at 0x7f9bc4723b80>,
<class 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f9bc4723280>,
<class 'datetime.datetime'>: <function DateTime2literal at 0x7f9bc47231f0>,
<class 'datetime.date'>: <function Thing2Literal at 0x7f9bc4723af0>} |
| conversions | {0: <class 'decimal.Decimal'>,
1: <class 'int'>,
2: <class 'int'>,
3: <class 'int'>,
4: <class 'float'>,
5: <class 'float'>,
7: <function DateTime_or_None at 0x7f9bc4717f70>,
8: <class 'int'>,
9: <class 'int'>,
10: <function Date_or_None at 0x7f9bc4723160>,
11: <function TimeDelta_or_None at 0x7f9bc4723040>,
12: <function DateTime_or_None at 0x7f9bc4717f70>,
13: <class 'int'>,
15: <class 'bytes'>,
245: <class 'bytes'>,
246: <class 'decimal.Decimal'>,
249: <class 'bytes'>,
250: <class 'bytes'>,
251: <class 'bytes'>,
252: <class 'bytes'>,
253: <class 'bytes'>,
254: <class 'bytes'>,
<class 'bool'>: <function Bool2Str at 0x7f9bc4723790>,
<class 'float'>: <function Float2Str at 0x7f9bc47239d0>,
<class 'int'>: <function Thing2Str at 0x7f9bc4723940>,
<class 'NoneType'>: <function None2NULL at 0x7f9bc4723a60>,
<class 'set'>: <function Set2Str at 0x7f9bc47238b0>,
<class 'array.array'>: <function array2Str at 0x7f9bc4723c10>,
<class 'decimal.Decimal'>: <function Decimal2Literal at 0x7f9bc4723b80>,
<class 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f9bc4723280>,
<class 'datetime.datetime'>: <function DateTime2literal at 0x7f9bc47231f0>,
<class 'datetime.date'>: <function Thing2Literal at 0x7f9bc4723af0>} |
| cursorclass | <class 'MySQLdb.cursors.Cursor'> |
| k | 245 |
| kwargs | {'charset': 'utf8',
'client_flag': 2,
'conv': {0: <class 'decimal.Decimal'>,
1: <class 'int'>,
2: <class 'int'>,
3: <class 'int'>,
4: <class 'float'>,
5: <class 'float'>,
7: <function DateTime_or_None at 0x7f9bc4717f70>,
8: <class 'int'>,
9: <class 'int'>,
10: <function Date_or_None at 0x7f9bc4723160>,
11: <function typecast_time at 0x7f9bc4f96af0>,
12: <function DateTime_or_None at 0x7f9bc4717f70>,
13: <class 'int'>,
15: <class 'bytes'>,
245: <class 'bytes'>,
246: <class 'decimal.Decimal'>,
249: <class 'bytes'>,
250: <class 'bytes'>,
251: <class 'bytes'>,
252: <class 'bytes'>,
253: <class 'bytes'>,
254: <class 'bytes'>,
<class 'bool'>: <function Bool2Str at 0x7f9bc4723790>,
<class 'float'>: <function Float2Str at 0x7f9bc47239d0>,
<class 'int'>: <function Thing2Str at 0x7f9bc4723940>,
<class 'NoneType'>: <function None2NULL at 0x7f9bc4723a60>,
<class 'set'>: <function Set2Str at 0x7f9bc47238b0>,
<class 'array.array'>: <function array2Str at 0x7f9bc4723c10>,
<class 'decimal.Decimal'>: <function Decimal2Literal at 0x7f9bc4723b80>,
<class 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f9bc4723280>,
<class 'datetime.datetime'>: <function DateTime2literal at 0x7f9bc47231f0>,
<class 'datetime.date'>: <function Thing2Literal at 0x7f9bc4723af0>},
'database': 'www_yupobearing_',
'host': '0.0.0.0',
'password': 'yNkAaiYJmpxnbydW',
'port': 3306,
'user': 'www_yupobearing_'} |
| kwargs2 | {'charset': 'utf8',
'client_flag': 196610,
'conv': {0: <class 'decimal.Decimal'>,
1: <class 'int'>,
2: <class 'int'>,
3: <class 'int'>,
4: <class 'float'>,
5: <class 'float'>,
7: <function DateTime_or_None at 0x7f9bc4717f70>,
8: <class 'int'>,
9: <class 'int'>,
10: <function Date_or_None at 0x7f9bc4723160>,
11: <function typecast_time at 0x7f9bc4f96af0>,
12: <function DateTime_or_None at 0x7f9bc4717f70>,
13: <class 'int'>,
15: <class 'bytes'>,
245: <class 'bytes'>,
246: <class 'decimal.Decimal'>,
249: <class 'bytes'>,
250: <class 'bytes'>,
251: <class 'bytes'>,
252: <class 'bytes'>,
253: <class 'bytes'>,
254: <class 'bytes'>,
<class 'bool'>: <function Bool2Str at 0x7f9bc4723790>,
<class 'float'>: <function Float2Str at 0x7f9bc47239d0>,
<class 'int'>: <function Thing2Str at 0x7f9bc4723940>,
<class 'NoneType'>: <function None2NULL at 0x7f9bc4723a60>,
<class 'set'>: <function Set2Str at 0x7f9bc47238b0>,
<class 'array.array'>: <function array2Str at 0x7f9bc4723c10>,
<class 'decimal.Decimal'>: <function Decimal2Literal at 0x7f9bc4723b80>,
<class 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f9bc4723280>,
<class 'datetime.datetime'>: <function DateTime2literal at 0x7f9bc47231f0>,
<class 'datetime.date'>: <function Thing2Literal at 0x7f9bc4723af0>},
'database': 'www_yupobearing_',
'host': '0.0.0.0',
'password': 'yNkAaiYJmpxnbydW',
'port': 3306,
'user': 'www_yupobearing_'} |
| multi_statements | True |
| proxy | <built-in function proxy> |
| self | <_mysql.connection open to '(null)' at 0x2bf0010> |
| sql_mode | '' |
| use_unicode | True |
| v | <class 'bytes'> |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/core/handlers/exception.py, line 47, in inner
response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)
return response
return inner
else:
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
| Variable | Value |
|---|---|
| exc | OperationalError(2003, "Can't connect to MySQL server on '0.0.0.0:3306' (111)") |
| get_response | <django.middleware.common.CommonMiddleware object at 0x7f9bc3004520> |
| request | <WSGIRequest: GET '/www.yupobearing.com/sitemap.xml'> |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/utils/deprecation.py, line 116, in __call__
def __call__(self, request):
# Exit out to async mode, if needed
if asyncio.iscoroutinefunction(self.get_response):
return self.__acall__(request)
response = None
if hasattr(self, 'process_request'):
response = self.process_request(request)…
response = response or self.get_response(request)
if hasattr(self, 'process_response'):
response = self.process_response(request, response)
return response
async def __acall__(self, request):
| Variable | Value |
|---|---|
| request | <WSGIRequest: GET '/www.yupobearing.com/sitemap.xml'> |
| response | None |
| self | <django.middleware.common.CommonMiddleware object at 0x7f9bc3004520> |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/middleware/common.py, line 53, in process_request
# Check for a redirect based on settings.PREPEND_WWW
host = request.get_host()
must_prepend = settings.PREPEND_WWW and host and not host.startswith('www.') redirect_url = ('%s://www.%s' % (request.scheme, host)) if must_prepend else ''# Check if a slash should be appended
if self.should_redirect_with_slash(request):…
path = self.get_full_path_with_slash(request)
else:
path = request.get_full_path()
# Return a redirect if necessary
if redirect_url or path != request.get_full_path():
| Variable | Value |
|---|---|
| host | 'www.yupobearing.com' |
| must_prepend | False |
| redirect_url | '' |
| request | <WSGIRequest: GET '/www.yupobearing.com/sitemap.xml'> |
| self | <django.middleware.common.CommonMiddleware object at 0x7f9bc3004520> |
| user_agent | ('Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; '
'ClaudeBot/1.0; +claudebot@anthropic.com)') |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/middleware/common.py, line 70, in should_redirect_with_slash
def should_redirect_with_slash(self, request):
"""
Return True if settings.APPEND_SLASH is True and appending a slash to
the request path turns an invalid path into a valid one.
"""
if settings.APPEND_SLASH and not request.path_info.endswith('/'):urlconf = getattr(request, 'urlconf', None)
if not is_valid_path(request.path_info, urlconf):…
match = is_valid_path('%s/' % request.path_info, urlconf)if match:
view = match.func
return getattr(view, 'should_append_slash', True)
return False
| Variable | Value |
|---|---|
| request | <WSGIRequest: GET '/www.yupobearing.com/sitemap.xml'> |
| self | <django.middleware.common.CommonMiddleware object at 0x7f9bc3004520> |
| urlconf | None |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/urls/base.py, line 153, in is_valid_path
def is_valid_path(path, urlconf=None):
"""
Return the ResolverMatch if the given path resolves against the default URL
resolver, False otherwise. This is a convenience method to make working
with "is this a match?" cases easier, avoiding try...except blocks.
"""
try:
return resolve(path, urlconf)…
except Resolver404:
return False
def translate_url(url, lang_code):
"""
| Variable | Value |
|---|---|
| path | '/www.yupobearing.com/sitemap.xml' |
| urlconf | None |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/urls/base.py, line 24, in resolve
# Overridden URLconfs for each thread are stored here.
_urlconfs = Local()
def resolve(path, urlconf=None):
if urlconf is None:
urlconf = get_urlconf()
return get_resolver(urlconf).resolve(path)…
def reverse(viewname, urlconf=None, args=None, kwargs=None, current_app=None):
if urlconf is None:
urlconf = get_urlconf()
resolver = get_resolver(urlconf)
| Variable | Value |
|---|---|
| path | '/www.yupobearing.com/sitemap.xml' |
| urlconf | 'sx_cms.urls' |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/urls/resolvers.py, line 556, in resolve
def resolve(self, path):
path = str(path) # path may be a reverse_lazy object
tried = []
match = self.pattern.match(path)
if match:
new_path, args, kwargs = match
for pattern in self.url_patterns:…
try:
sub_match = pattern.resolve(new_path)
except Resolver404 as e:
self._extend_tried(tried, pattern, e.args[0].get('tried'))else:
if sub_match:
| Variable | Value |
|---|---|
| args | () |
| kwargs | {} |
| match | ('www.yupobearing.com/sitemap.xml', (), {}) |
| new_path | 'www.yupobearing.com/sitemap.xml' |
| path | '/www.yupobearing.com/sitemap.xml' |
| self | <URLResolver 'sx_cms.urls' (None:None) '^/'> |
| tried | [] |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/utils/functional.py, line 48, in __get__
"""
Call the function and put the return value in instance.__dict__ so that
subsequent attribute access on the instance returns the cached value
instead of calling cached_property.__get__().
"""
if instance is None:
return self
res = instance.__dict__[self.name] = self.func(instance)…
return res
class classproperty:
"""
Decorator that converts a method with a single cls argument into a property
| Variable | Value |
|---|---|
| cls | <class 'django.urls.resolvers.URLResolver'> |
| instance | <URLResolver 'sx_cms.urls' (None:None) '^/'> |
| self | <django.utils.functional.cached_property object at 0x7f9bc4ed4880> |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/urls/resolvers.py, line 598, in url_patterns
return import_module(self.urlconf_name)
else:
return self.urlconf_name
@cached_property
def url_patterns(self):
# urlconf_module might be a valid set of patterns, so we default to it
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)…
try:
iter(patterns)
except TypeError as e:
msg = (
"The included URLconf '{name}' does not appear to have any ""patterns in it. If you see valid patterns in the file then "
| Variable | Value |
|---|---|
| self | <URLResolver 'sx_cms.urls' (None:None) '^/'> |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/utils/functional.py, line 48, in __get__
"""
Call the function and put the return value in instance.__dict__ so that
subsequent attribute access on the instance returns the cached value
instead of calling cached_property.__get__().
"""
if instance is None:
return self
res = instance.__dict__[self.name] = self.func(instance)…
return res
class classproperty:
"""
Decorator that converts a method with a single cls argument into a property
| Variable | Value |
|---|---|
| cls | <class 'django.urls.resolvers.URLResolver'> |
| instance | <URLResolver 'sx_cms.urls' (None:None) '^/'> |
| self | <django.utils.functional.cached_property object at 0x7f9bc4ed4820> |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/urls/resolvers.py, line 591, in urlconf_module
tried.append([pattern])
raise Resolver404({'tried': tried, 'path': new_path}) raise Resolver404({'path': path})@cached_property
def urlconf_module(self):
if isinstance(self.urlconf_name, str):
return import_module(self.urlconf_name)…
else:
return self.urlconf_name
@cached_property
def url_patterns(self):
# urlconf_module might be a valid set of patterns, so we default to it
| Variable | Value |
|---|---|
| self | <URLResolver 'sx_cms.urls' (None:None) '^/'> |
/root/.pyenv/versions/3.8.1/lib/python3.8/importlib/__init__.py, line 127, in import_module
msg = ("the 'package' argument is required to perform a relative " "import for {!r}")raise TypeError(msg.format(name))
for character in name:
if character != '.':
break
level += 1
return _bootstrap._gcd_import(name[level:], package, level)…
_RELOADING = {}def reload(module):
| Variable | Value |
|---|---|
| level | 0 |
| name | 'sx_cms.urls' |
| package | None |
<frozen importlib._bootstrap>, line 1014, in _gcd_import
<source code not available>…
| Variable | Value |
|---|---|
| level | 0 |
| name | 'sx_cms.urls' |
| package | None |
<frozen importlib._bootstrap>, line 991, in _find_and_load
<source code not available>…
| Variable | Value |
|---|---|
| import_ | <function _gcd_import at 0x7f9bd484b430> |
| module | <object object at 0x7f9bd4822060> |
| name | 'sx_cms.urls' |
<frozen importlib._bootstrap>, line 975, in _find_and_load_unlocked
<source code not available>…
| Variable | Value |
|---|---|
| import_ | <function _gcd_import at 0x7f9bd484b430> |
| name | 'sx_cms.urls' |
| parent | 'sx_cms' |
| parent_module | <module 'sx_cms' from './sx_cms/__init__.py'> |
| path | ['./sx_cms'] |
| spec | ModuleSpec(name='sx_cms.urls', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f9bc27384c0>, origin='./sx_cms/urls.py') |
<frozen importlib._bootstrap>, line 671, in _load_unlocked
<source code not available>…
| Variable | Value |
|---|---|
| module | <module 'sx_cms.urls' from './sx_cms/urls.py'> |
| spec | ModuleSpec(name='sx_cms.urls', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f9bc27384c0>, origin='./sx_cms/urls.py') |
<frozen importlib._bootstrap_external>, line 783, in exec_module
<source code not available>…
| Variable | Value |
|---|---|
| code | <code object <module> at 0x7f9bc2595030, file "./sx_cms/urls.py", line 6> |
| module | <module 'sx_cms.urls' from './sx_cms/urls.py'> |
| self | <_frozen_importlib_external.SourceFileLoader object at 0x7f9bc27384c0> |
<frozen importlib._bootstrap>, line 219, in _call_with_frames_removed
<source code not available>…
| Variable | Value |
|---|---|
| args | (<code object <module> at 0x7f9bc2595030, file "./sx_cms/urls.py", line 6>,
{'TemplateView': <class 'django.views.generic.base.TemplateView'>,
'__builtins__': {'ArithmeticError': <class 'ArithmeticError'>,
'AssertionError': <class 'AssertionError'>,
'AttributeError': <class 'AttributeError'>,
'BaseException': <class 'BaseException'>,
'BlockingIOError': <class 'BlockingIOError'>,
'BrokenPipeError': <class 'BrokenPipeError'>,
'BufferError': <class 'BufferError'>,
'BytesWarning': <class 'BytesWarning'>,
'ChildProcessError': <class 'ChildProcessError'>,
'ConnectionAbortedError': <class 'ConnectionAbortedError'>,
'ConnectionError': <class 'ConnectionError'>,
'ConnectionRefusedError': <class 'ConnectionRefusedError'>,
'ConnectionResetError': <class 'ConnectionResetError'>,
'DeprecationWarning': <class 'DeprecationWarning'>,
'EOFError': <class 'EOFError'>,
'Ellipsis': Ellipsis,
'EnvironmentError': <class 'OSError'>,
'Exception': <class 'Exception'>,
'False': False,
'FileExistsError': <class 'FileExistsError'>,
'FileNotFoundError': <class 'FileNotFoundError'>,
'FloatingPointError': <class 'FloatingPointError'>,
'FutureWarning': <class 'FutureWarning'>,
'GeneratorExit': <class 'GeneratorExit'>,
'IOError': <class 'OSError'>,
'ImportError': <class 'ImportError'>,
'ImportWarning': <class 'ImportWarning'>,
'IndentationError': <class 'IndentationError'>,
'IndexError': <class 'IndexError'>,
'InterruptedError': <class 'InterruptedError'>,
'IsADirectoryError': <class 'IsADirectoryError'>,
'KeyError': <class 'KeyError'>,
'KeyboardInterrupt': <class 'KeyboardInterrupt'>,
'LookupError': <class 'LookupError'>,
'MemoryError': <class 'MemoryError'>,
'ModuleNotFoundError': <class 'ModuleNotFoundError'>,
'NameError': <class 'NameError'>,
'None': None,
'NotADirectoryError': <class 'NotADirectoryError'>,
'NotImplemented': NotImplemented,
'NotImplementedError': <class 'NotImplementedError'>,
'OSError': <class 'OSError'>,
'OverflowError': <class 'OverflowError'>,
'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>,
'PermissionError': <class 'PermissionError'>,
'ProcessLookupError': <class 'ProcessLookupError'>,
'RecursionError': <class 'RecursionError'>,
'ReferenceError': <class 'ReferenceError'>,
'ResourceWarning': <class 'ResourceWarning'>,
'RuntimeError': <class 'RuntimeError'>,
'RuntimeWarning': <class 'RuntimeWarning'>,
'StopAsyncIteration': <class 'StopAsyncIteration'>,
'StopIteration': <class 'StopIteration'>,
'SyntaxError': <class 'SyntaxError'>,
'SyntaxWarning': <class 'SyntaxWarning'>,
'SystemError': <class 'SystemError'>,
'SystemExit': <class 'SystemExit'>,
'TabError': <class 'TabError'>,
'TimeoutError': <class 'TimeoutError'>,
'True': True,
'TypeError': <class 'TypeError'>,
'UnboundLocalError': <class 'UnboundLocalError'>,
'UnicodeDecodeError': <class 'UnicodeDecodeError'>,
'UnicodeEncodeError': <class 'UnicodeEncodeError'>,
'Uni… <trimmed 10710 bytes string> |
| f | <built-in function exec> |
| kwds | {} |
./sx_cms/urls.py, line 17, in <module>
from django.urls import path, include
from django.views.static import serve
from news.uploads import upload_image
from sx_cms import views, settings
from sx_cms.settings import admin_address
from django.views.generic.base import TemplateView
from sx_cms.sitemaps import HomeSitemap, GoodsCatalogSitemap, NewsCatalogSitemap, TuWenCatalogSitemap, GoodsSitemap, \…
NewsSitemap, TuWenSitemap, PageSitemap
from sxkj_admin.admin import admin_site
admin.autodiscover()
admin_site.enable_nav_sidebar = False
| Variable | Value |
|---|---|
| TemplateView | <class 'django.views.generic.base.TemplateView'> |
| __builtins__ | {'ArithmeticError': <class 'ArithmeticError'>,
'AssertionError': <class 'AssertionError'>,
'AttributeError': <class 'AttributeError'>,
'BaseException': <class 'BaseException'>,
'BlockingIOError': <class 'BlockingIOError'>,
'BrokenPipeError': <class 'BrokenPipeError'>,
'BufferError': <class 'BufferError'>,
'BytesWarning': <class 'BytesWarning'>,
'ChildProcessError': <class 'ChildProcessError'>,
'ConnectionAbortedError': <class 'ConnectionAbortedError'>,
'ConnectionError': <class 'ConnectionError'>,
'ConnectionRefusedError': <class 'ConnectionRefusedError'>,
'ConnectionResetError': <class 'ConnectionResetError'>,
'DeprecationWarning': <class 'DeprecationWarning'>,
'EOFError': <class 'EOFError'>,
'Ellipsis': Ellipsis,
'EnvironmentError': <class 'OSError'>,
'Exception': <class 'Exception'>,
'False': False,
'FileExistsError': <class 'FileExistsError'>,
'FileNotFoundError': <class 'FileNotFoundError'>,
'FloatingPointError': <class 'FloatingPointError'>,
'FutureWarning': <class 'FutureWarning'>,
'GeneratorExit': <class 'GeneratorExit'>,
'IOError': <class 'OSError'>,
'ImportError': <class 'ImportError'>,
'ImportWarning': <class 'ImportWarning'>,
'IndentationError': <class 'IndentationError'>,
'IndexError': <class 'IndexError'>,
'InterruptedError': <class 'InterruptedError'>,
'IsADirectoryError': <class 'IsADirectoryError'>,
'KeyError': <class 'KeyError'>,
'KeyboardInterrupt': <class 'KeyboardInterrupt'>,
'LookupError': <class 'LookupError'>,
'MemoryError': <class 'MemoryError'>,
'ModuleNotFoundError': <class 'ModuleNotFoundError'>,
'NameError': <class 'NameError'>,
'None': None,
'NotADirectoryError': <class 'NotADirectoryError'>,
'NotImplemented': NotImplemented,
'NotImplementedError': <class 'NotImplementedError'>,
'OSError': <class 'OSError'>,
'OverflowError': <class 'OverflowError'>,
'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>,
'PermissionError': <class 'PermissionError'>,
'ProcessLookupError': <class 'ProcessLookupError'>,
'RecursionError': <class 'RecursionError'>,
'ReferenceError': <class 'ReferenceError'>,
'ResourceWarning': <class 'ResourceWarning'>,
'RuntimeError': <class 'RuntimeError'>,
'RuntimeWarning': <class 'RuntimeWarning'>,
'StopAsyncIteration': <class 'StopAsyncIteration'>,
'StopIteration': <class 'StopIteration'>,
'SyntaxError': <class 'SyntaxError'>,
'SyntaxWarning': <class 'SyntaxWarning'>,
'SystemError': <class 'SystemError'>,
'SystemExit': <class 'SystemExit'>,
'TabError': <class 'TabError'>,
'TimeoutError': <class 'TimeoutError'>,
'True': True,
'TypeError': <class 'TypeError'>,
'UnboundLocalError': <class 'UnboundLocalError'>,
'UnicodeDecodeError': <class 'UnicodeDecodeError'>,
'UnicodeEncodeError': <class 'UnicodeEncodeError'>,
'UnicodeError': <class 'UnicodeError'>,
'UnicodeTranslateError': <class 'UnicodeTranslateError'>,
'UnicodeWarning': <class 'UnicodeWarning'>,
'UserWarning': <class 'UserWarning'>,
'ValueError': <class 'ValueError'>,
'Warning': <class 'Warning'>,
'ZeroDivisionError': <class 'ZeroDivisionError'>,
'__build_class__': <built-in function __build_class__>,
'__debug__': True,
'__doc__': 'Built-in functions, exceptions, and other objects.\n'
'\n'
"Noteworthy: None is the `nil' object; Ellipsis represents `...' "
'in slices.',
'__import__': <built-in function __import__>,
'__loader__': <class '_frozen_importlib.BuiltinImporter'>,
'__name__': 'builtins',
'__package__': '',
'__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>),
'abs': <built-in function abs>,
'all': <built-in function all>,
'any': <built-in function any>,
'ascii': <built-in function ascii>,
'bin': <built-in function bin>,
'bool': <class 'bool'>,
'breakpoint': <built-in function breakpoint>,
'bytearray': <class 'bytearray'>,
'bytes': <class 'bytes'>,
'callable': <built-in function callable>,
'chr': <built-in function chr>,
'classmethod': <class 'classmethod'>,
'compile': <built-in function compile>,
'complex': <class 'complex'>,
'copyright': … <trimmed 6587 bytes string> |
| __cached__ | './sx_cms/__pycache__/urls.cpython-38.pyc' |
| __doc__ | None |
| __file__ | './sx_cms/urls.py' |
| __loader__ | <_frozen_importlib_external.SourceFileLoader object at 0x7f9bc27384c0> |
| __name__ | 'sx_cms.urls' |
| __package__ | 'sx_cms' |
| __spec__ | ModuleSpec(name='sx_cms.urls', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f9bc27384c0>, origin='./sx_cms/urls.py') |
| admin | <module 'django.contrib.admin' from '/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/contrib/admin/__init__.py'> |
| admin_address | 'sxkjcms-admin/' |
| include | <function include at 0x7f9bc4edcc10> |
| path | functools.partial(<function _path at 0x7f9bc4edcca0>, Pattern=<class 'django.urls.resolvers.RoutePattern'>) |
| serve | <function serve at 0x7f9bc27b3280> |
| settings | <module 'sx_cms.settings' from './sx_cms/settings.py'> |
| sitemap | <function sitemap at 0x7f9bc27b3670> |
| static | <function static at 0x7f9bc27b3040> |
| upload_image | <function upload_image at 0x7f9bc27b3820> |
| url | <function url at 0x7f9bc30219d0> |
| views | <module 'sx_cms.views' from './sx_cms/views.py'> |
./sx_cms/sitemaps.py, line 25, in <module>
# 尝试在此处对站点地图进一步优化。 当站点地图数据不存在时(即后台没有添加),就执行指定的权重和频次。
# 当存在时就读取数据表的对应值。这可以实现当用户没有在后台生成地图时,照样可以打开地图文件。
# 但是这样并不能避免在清空数据库后,重新迁移数据时的报错。
# 因此,如果数据库被删除。要重新生成时,要把主目录下的 urls.py 下的 sitemaps 字典,和对应的path路径注释掉,再生成。
if Map.objects.filter().exists():…
sx_site = Map.objects.get(id=1)
catalog_w = sx_site.get_catalog_w_display() # 分类页权重
catalog_f = sx_site.get_catalog_f_display() # 分类页更新频率
index_w = sx_site.get_index_w_display() # 首页权重
| Variable | Value |
|---|---|
| Goods | <class 'goods.models.Goods'> |
| GoodsCatalog | <class 'goods.models.GoodsCatalog'> |
| Map | <class 'sitemap_set.models.Sitemap'> |
| News | <class 'news.models.News'> |
| NewsCatalog | <class 'news.models.NewsCatalog'> |
| Page | <class 'page.models.Page'> |
| Sitemap | <class 'django.contrib.sitemaps.Sitemap'> |
| TuWen | <class 'tuwen.models.TuWen'> |
| TuWenCatalog | <class 'tuwen.models.TuWenCatalog'> |
| __builtins__ | {'ArithmeticError': <class 'ArithmeticError'>,
'AssertionError': <class 'AssertionError'>,
'AttributeError': <class 'AttributeError'>,
'BaseException': <class 'BaseException'>,
'BlockingIOError': <class 'BlockingIOError'>,
'BrokenPipeError': <class 'BrokenPipeError'>,
'BufferError': <class 'BufferError'>,
'BytesWarning': <class 'BytesWarning'>,
'ChildProcessError': <class 'ChildProcessError'>,
'ConnectionAbortedError': <class 'ConnectionAbortedError'>,
'ConnectionError': <class 'ConnectionError'>,
'ConnectionRefusedError': <class 'ConnectionRefusedError'>,
'ConnectionResetError': <class 'ConnectionResetError'>,
'DeprecationWarning': <class 'DeprecationWarning'>,
'EOFError': <class 'EOFError'>,
'Ellipsis': Ellipsis,
'EnvironmentError': <class 'OSError'>,
'Exception': <class 'Exception'>,
'False': False,
'FileExistsError': <class 'FileExistsError'>,
'FileNotFoundError': <class 'FileNotFoundError'>,
'FloatingPointError': <class 'FloatingPointError'>,
'FutureWarning': <class 'FutureWarning'>,
'GeneratorExit': <class 'GeneratorExit'>,
'IOError': <class 'OSError'>,
'ImportError': <class 'ImportError'>,
'ImportWarning': <class 'ImportWarning'>,
'IndentationError': <class 'IndentationError'>,
'IndexError': <class 'IndexError'>,
'InterruptedError': <class 'InterruptedError'>,
'IsADirectoryError': <class 'IsADirectoryError'>,
'KeyError': <class 'KeyError'>,
'KeyboardInterrupt': <class 'KeyboardInterrupt'>,
'LookupError': <class 'LookupError'>,
'MemoryError': <class 'MemoryError'>,
'ModuleNotFoundError': <class 'ModuleNotFoundError'>,
'NameError': <class 'NameError'>,
'None': None,
'NotADirectoryError': <class 'NotADirectoryError'>,
'NotImplemented': NotImplemented,
'NotImplementedError': <class 'NotImplementedError'>,
'OSError': <class 'OSError'>,
'OverflowError': <class 'OverflowError'>,
'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>,
'PermissionError': <class 'PermissionError'>,
'ProcessLookupError': <class 'ProcessLookupError'>,
'RecursionError': <class 'RecursionError'>,
'ReferenceError': <class 'ReferenceError'>,
'ResourceWarning': <class 'ResourceWarning'>,
'RuntimeError': <class 'RuntimeError'>,
'RuntimeWarning': <class 'RuntimeWarning'>,
'StopAsyncIteration': <class 'StopAsyncIteration'>,
'StopIteration': <class 'StopIteration'>,
'SyntaxError': <class 'SyntaxError'>,
'SyntaxWarning': <class 'SyntaxWarning'>,
'SystemError': <class 'SystemError'>,
'SystemExit': <class 'SystemExit'>,
'TabError': <class 'TabError'>,
'TimeoutError': <class 'TimeoutError'>,
'True': True,
'TypeError': <class 'TypeError'>,
'UnboundLocalError': <class 'UnboundLocalError'>,
'UnicodeDecodeError': <class 'UnicodeDecodeError'>,
'UnicodeEncodeError': <class 'UnicodeEncodeError'>,
'UnicodeError': <class 'UnicodeError'>,
'UnicodeTranslateError': <class 'UnicodeTranslateError'>,
'UnicodeWarning': <class 'UnicodeWarning'>,
'UserWarning': <class 'UserWarning'>,
'ValueError': <class 'ValueError'>,
'Warning': <class 'Warning'>,
'ZeroDivisionError': <class 'ZeroDivisionError'>,
'__build_class__': <built-in function __build_class__>,
'__debug__': True,
'__doc__': 'Built-in functions, exceptions, and other objects.\n'
'\n'
"Noteworthy: None is the `nil' object; Ellipsis represents `...' "
'in slices.',
'__import__': <built-in function __import__>,
'__loader__': <class '_frozen_importlib.BuiltinImporter'>,
'__name__': 'builtins',
'__package__': '',
'__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>),
'abs': <built-in function abs>,
'all': <built-in function all>,
'any': <built-in function any>,
'ascii': <built-in function ascii>,
'bin': <built-in function bin>,
'bool': <class 'bool'>,
'breakpoint': <built-in function breakpoint>,
'bytearray': <class 'bytearray'>,
'bytes': <class 'bytes'>,
'callable': <built-in function callable>,
'chr': <built-in function chr>,
'classmethod': <class 'classmethod'>,
'compile': <built-in function compile>,
'complex': <class 'complex'>,
'copyright': … <trimmed 6587 bytes string> |
| __cached__ | './sx_cms/__pycache__/sitemaps.cpython-38.pyc' |
| __doc__ | None |
| __file__ | './sx_cms/sitemaps.py' |
| __loader__ | <_frozen_importlib_external.SourceFileLoader object at 0x7f9bc27c51f0> |
| __name__ | 'sx_cms.sitemaps' |
| __package__ | 'sx_cms' |
| __spec__ | ModuleSpec(name='sx_cms.sitemaps', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f9bc27c51f0>, origin='./sx_cms/sitemaps.py') |
| datetime | <module 'datetime' from '/root/.pyenv/versions/3.8.1/lib/python3.8/datetime.py'> |
| reverse | <function reverse at 0x7f9bc4edbaf0> |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/db/models/query.py, line 808, in exists
self._result_cache = None
return query.get_compiler(self.db).execute_sql(CURSOR)
_update.alters_data = True
_update.queryset_only = False
def exists(self):
if self._result_cache is None:
return self.query.has_results(using=self.db)…
return bool(self._result_cache)
def _prefetch_related_objects(self):
# This method can only be called once the result cache has been filled.
prefetch_related_objects(self._result_cache, *self._prefetch_related_lookups)
self._prefetch_done = True
| Variable | Value |
|---|---|
| self | Error in formatting: OperationalError: (2003, "Can't connect to MySQL server on '0.0.0.0:3306' (111)") |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/db/models/sql/query.py, line 552, in has_results
q.add_extra({'a': 1}, None, None, None, None, None)q.set_extra_mask(['a'])
return q
def has_results(self, using):
q = self.exists(using)
compiler = q.get_compiler(using=using)
return compiler.has_results()…
def explain(self, using, format=None, **options):
q = self.clone()
q.explain_query = True
q.explain_format = format
q.explain_options = options
| Variable | Value |
|---|---|
| compiler | <django.db.backends.mysql.compiler.SQLCompiler object at 0x7f9bc256e9a0> |
| q | <django.db.models.sql.query.Query object at 0x7f9bc256e580> |
| self | <django.db.models.sql.query.Query object at 0x7f9bc256e040> |
| using | 'default' |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/db/models/sql/compiler.py, line 1145, in has_results
return rows
def has_results(self):
"""
Backends (e.g. NoSQL) can override this in order to use optimized
versions of "query has any results."
"""
return bool(self.execute_sql(SINGLE))…
def execute_sql(self, result_type=MULTI, chunked_fetch=False, chunk_size=GET_ITERATOR_CHUNK_SIZE):
"""
Run the query against the database and return the result(s). The
return value is a single data item if result_type is SINGLE, or an
iterator over the results if the result_type is MULTI.
| Variable | Value |
|---|---|
| self | <django.db.backends.mysql.compiler.SQLCompiler object at 0x7f9bc256e9a0> |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/db/models/sql/compiler.py, line 1173, in execute_sql
if result_type == MULTI:
return iter([])
else:
return
if chunked_fetch:
cursor = self.connection.chunked_cursor()
else:
cursor = self.connection.cursor()…
try:
cursor.execute(sql, params)
except Exception:
# Might fail for server-side cursors (e.g. connection closed)
cursor.close()
raise
| Variable | Value |
|---|---|
| chunk_size | 100 |
| chunked_fetch | False |
| params | () |
| result_type | 'single' |
| self | <django.db.backends.mysql.compiler.SQLCompiler object at 0x7f9bc256e9a0> |
| sql | 'SELECT (1) AS `a` FROM `sitemap_set_sitemap` LIMIT 1' |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/utils/asyncio.py, line 26, in inner
event_loop = asyncio.get_event_loop()
except RuntimeError:
pass
else:
if event_loop.is_running():
raise SynchronousOnlyOperation(message)
# Pass onwards.
return func(*args, **kwargs)…
return inner
# If the message is actually a function, then be a no-arguments decorator.
if callable(message):
func = message
message = 'You cannot call this from an async context - use a thread or sync_to_async.'
return decorator(func)
| Variable | Value |
|---|---|
| args | (<django.db.backends.mysql.base.DatabaseWrapper object at 0x7f9bc4740910>,) |
| event_loop | <_UnixSelectorEventLoop running=False closed=False debug=False> |
| func | <function BaseDatabaseWrapper.cursor at 0x7f9bc4713790> |
| kwargs | {} |
| message | 'You cannot call this from an async context - use a thread or sync_to_async.' |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/db/backends/base/base.py, line 259, in cursor
return self.connection.close()
# ##### Generic wrappers for PEP-249 connection methods #####
@async_unsafe
def cursor(self):
"""Create a cursor, opening a connection if necessary."""
return self._cursor()…
@async_unsafe
def commit(self):
"""Commit a transaction and reset the dirty flag."""
self.validate_thread_sharing()
self.validate_no_atomic_block()
| Variable | Value |
|---|---|
| self | <django.db.backends.mysql.base.DatabaseWrapper object at 0x7f9bc4740910> |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/db/backends/base/base.py, line 235, in _cursor
if self.queries_logged:
wrapped_cursor = self.make_debug_cursor(cursor)
else:
wrapped_cursor = self.make_cursor(cursor)
return wrapped_cursor
def _cursor(self, name=None):
self.ensure_connection()…
with self.wrap_database_errors:
return self._prepare_cursor(self.create_cursor(name))
def _commit(self):
if self.connection is not None:
with self.wrap_database_errors:
| Variable | Value |
|---|---|
| name | None |
| self | <django.db.backends.mysql.base.DatabaseWrapper object at 0x7f9bc4740910> |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/utils/asyncio.py, line 26, in inner
event_loop = asyncio.get_event_loop()
except RuntimeError:
pass
else:
if event_loop.is_running():
raise SynchronousOnlyOperation(message)
# Pass onwards.
return func(*args, **kwargs)…
return inner
# If the message is actually a function, then be a no-arguments decorator.
if callable(message):
func = message
message = 'You cannot call this from an async context - use a thread or sync_to_async.'
return decorator(func)
| Variable | Value |
|---|---|
| args | (<django.db.backends.mysql.base.DatabaseWrapper object at 0x7f9bc4740910>,) |
| event_loop | <_UnixSelectorEventLoop running=False closed=False debug=False> |
| func | <function BaseDatabaseWrapper.ensure_connection at 0x7f9bc47133a0> |
| kwargs | {} |
| message | 'You cannot call this from an async context - use a thread or sync_to_async.' |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/db/backends/base/base.py, line 219, in ensure_connection
)
@async_unsafe
def ensure_connection(self):
"""Guarantee that a connection to the database is established."""
if self.connection is None:
with self.wrap_database_errors:
self.connect()…
# ##### Backend-specific wrappers for PEP-249 connection methods #####
def _prepare_cursor(self, cursor):
"""
Validate the connection is usable and perform database cursor wrapping.
| Variable | Value |
|---|---|
| self | <django.db.backends.mysql.base.DatabaseWrapper object at 0x7f9bc4740910> |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/db/utils.py, line 90, in __exit__
db_exc_type = getattr(self.wrapper.Database, dj_exc_type.__name__)
if issubclass(exc_type, db_exc_type):
dj_exc_value = dj_exc_type(*exc_value.args)
# Only set the 'errors_occurred' flag for errors that may make
# the connection unusable.
if dj_exc_type not in (DataError, IntegrityError):
self.wrapper.errors_occurred = True
raise dj_exc_value.with_traceback(traceback) from exc_value…
def __call__(self, func):
# Note that we are intentionally not using @wraps here for performance
# reasons. Refs #21109.
def inner(*args, **kwargs):
with self:
| Variable | Value |
|---|---|
| db_exc_type | <class 'MySQLdb._exceptions.OperationalError'> |
| dj_exc_type | <class 'django.db.utils.OperationalError'> |
| dj_exc_value | OperationalError(2003, "Can't connect to MySQL server on '0.0.0.0:3306' (111)") |
| exc_type | <class 'MySQLdb._exceptions.OperationalError'> |
| exc_value | OperationalError(2003, "Can't connect to MySQL server on '0.0.0.0:3306' (111)") |
| self | <django.db.utils.DatabaseErrorWrapper object at 0x7f9bc27d2bb0> |
| traceback | <traceback object at 0x7f9bc275eb00> |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/db/backends/base/base.py, line 219, in ensure_connection
)
@async_unsafe
def ensure_connection(self):
"""Guarantee that a connection to the database is established."""
if self.connection is None:
with self.wrap_database_errors:
self.connect()…
# ##### Backend-specific wrappers for PEP-249 connection methods #####
def _prepare_cursor(self, cursor):
"""
Validate the connection is usable and perform database cursor wrapping.
| Variable | Value |
|---|---|
| self | <django.db.backends.mysql.base.DatabaseWrapper object at 0x7f9bc4740910> |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/utils/asyncio.py, line 26, in inner
event_loop = asyncio.get_event_loop()
except RuntimeError:
pass
else:
if event_loop.is_running():
raise SynchronousOnlyOperation(message)
# Pass onwards.
return func(*args, **kwargs)…
return inner
# If the message is actually a function, then be a no-arguments decorator.
if callable(message):
func = message
message = 'You cannot call this from an async context - use a thread or sync_to_async.'
return decorator(func)
| Variable | Value |
|---|---|
| args | (<django.db.backends.mysql.base.DatabaseWrapper object at 0x7f9bc4740910>,) |
| event_loop | <_UnixSelectorEventLoop running=False closed=False debug=False> |
| func | <function BaseDatabaseWrapper.connect at 0x7f9bc47131f0> |
| kwargs | {} |
| message | 'You cannot call this from an async context - use a thread or sync_to_async.' |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/db/backends/base/base.py, line 200, in connect
# Reset parameters defining when to close the connection
max_age = self.settings_dict['CONN_MAX_AGE']
self.close_at = None if max_age is None else time.monotonic() + max_age
self.closed_in_transaction = False
self.errors_occurred = False
# Establish the connection
conn_params = self.get_connection_params()
self.connection = self.get_new_connection(conn_params)…
self.set_autocommit(self.settings_dict['AUTOCOMMIT'])
self.init_connection_state()
connection_created.send(sender=self.__class__, connection=self)
self.run_on_commit = []
| Variable | Value |
|---|---|
| conn_params | {'charset': 'utf8',
'client_flag': 2,
'conv': {0: <class 'decimal.Decimal'>,
1: <class 'int'>,
2: <class 'int'>,
3: <class 'int'>,
4: <class 'float'>,
5: <class 'float'>,
7: <function DateTime_or_None at 0x7f9bc4717f70>,
8: <class 'int'>,
9: <class 'int'>,
10: <function Date_or_None at 0x7f9bc4723160>,
11: <function typecast_time at 0x7f9bc4f96af0>,
12: <function DateTime_or_None at 0x7f9bc4717f70>,
13: <class 'int'>,
15: <class 'bytes'>,
245: <class 'bytes'>,
246: <class 'decimal.Decimal'>,
249: <class 'bytes'>,
250: <class 'bytes'>,
251: <class 'bytes'>,
252: <class 'bytes'>,
253: <class 'bytes'>,
254: <class 'bytes'>,
<class 'bool'>: <function Bool2Str at 0x7f9bc4723790>,
<class 'float'>: <function Float2Str at 0x7f9bc47239d0>,
<class 'int'>: <function Thing2Str at 0x7f9bc4723940>,
<class 'NoneType'>: <function None2NULL at 0x7f9bc4723a60>,
<class 'set'>: <function Set2Str at 0x7f9bc47238b0>,
<class 'array.array'>: <function array2Str at 0x7f9bc4723c10>,
<class 'decimal.Decimal'>: <function Decimal2Literal at 0x7f9bc4723b80>,
<class 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f9bc4723280>,
<class 'datetime.datetime'>: <function DateTime2literal at 0x7f9bc47231f0>,
<class 'datetime.date'>: <function Thing2Literal at 0x7f9bc4723af0>},
'database': 'www_yupobearing_',
'host': '0.0.0.0',
'password': 'yNkAaiYJmpxnbydW',
'port': 3306,
'user': 'www_yupobearing_'} |
| max_age | 0 |
| self | <django.db.backends.mysql.base.DatabaseWrapper object at 0x7f9bc4740910> |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/utils/asyncio.py, line 26, in inner
event_loop = asyncio.get_event_loop()
except RuntimeError:
pass
else:
if event_loop.is_running():
raise SynchronousOnlyOperation(message)
# Pass onwards.
return func(*args, **kwargs)…
return inner
# If the message is actually a function, then be a no-arguments decorator.
if callable(message):
func = message
message = 'You cannot call this from an async context - use a thread or sync_to_async.'
return decorator(func)
| Variable | Value |
|---|---|
| args | (<django.db.backends.mysql.base.DatabaseWrapper object at 0x7f9bc4740910>,
{'charset': 'utf8',
'client_flag': 2,
'conv': {0: <class 'decimal.Decimal'>,
1: <class 'int'>,
2: <class 'int'>,
3: <class 'int'>,
4: <class 'float'>,
5: <class 'float'>,
7: <function DateTime_or_None at 0x7f9bc4717f70>,
8: <class 'int'>,
9: <class 'int'>,
10: <function Date_or_None at 0x7f9bc4723160>,
11: <function typecast_time at 0x7f9bc4f96af0>,
12: <function DateTime_or_None at 0x7f9bc4717f70>,
13: <class 'int'>,
15: <class 'bytes'>,
245: <class 'bytes'>,
246: <class 'decimal.Decimal'>,
249: <class 'bytes'>,
250: <class 'bytes'>,
251: <class 'bytes'>,
252: <class 'bytes'>,
253: <class 'bytes'>,
254: <class 'bytes'>,
<class 'bool'>: <function Bool2Str at 0x7f9bc4723790>,
<class 'float'>: <function Float2Str at 0x7f9bc47239d0>,
<class 'int'>: <function Thing2Str at 0x7f9bc4723940>,
<class 'NoneType'>: <function None2NULL at 0x7f9bc4723a60>,
<class 'set'>: <function Set2Str at 0x7f9bc47238b0>,
<class 'array.array'>: <function array2Str at 0x7f9bc4723c10>,
<class 'decimal.Decimal'>: <function Decimal2Literal at 0x7f9bc4723b80>,
<class 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f9bc4723280>,
<class 'datetime.datetime'>: <function DateTime2literal at 0x7f9bc47231f0>,
<class 'datetime.date'>: <function Thing2Literal at 0x7f9bc4723af0>},
'database': 'www_yupobearing_',
'host': '0.0.0.0',
'password': 'yNkAaiYJmpxnbydW',
'port': 3306,
'user': 'www_yupobearing_'}) |
| event_loop | <_UnixSelectorEventLoop running=False closed=False debug=False> |
| func | <function DatabaseWrapper.get_new_connection at 0x7f9bc31e48b0> |
| kwargs | {} |
| message | 'You cannot call this from an async context - use a thread or sync_to_async.' |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/django/db/backends/mysql/base.py, line 234, in get_new_connection
))
self.isolation_level = isolation_level
kwargs.update(options)
return kwargs
@async_unsafe
def get_new_connection(self, conn_params):
connection = Database.connect(**conn_params)…
# bytes encoder in mysqlclient doesn't work and was added only to
# prevent KeyErrors in Django < 2.0. We can remove this workaround when
# mysqlclient 2.1 becomes the minimal mysqlclient supported by Django.
# See https://github.com/PyMySQL/mysqlclient/issues/489
if connection.encoders.get(bytes) is bytes:
connection.encoders.pop(bytes)
| Variable | Value |
|---|---|
| conn_params | {'charset': 'utf8',
'client_flag': 2,
'conv': {0: <class 'decimal.Decimal'>,
1: <class 'int'>,
2: <class 'int'>,
3: <class 'int'>,
4: <class 'float'>,
5: <class 'float'>,
7: <function DateTime_or_None at 0x7f9bc4717f70>,
8: <class 'int'>,
9: <class 'int'>,
10: <function Date_or_None at 0x7f9bc4723160>,
11: <function typecast_time at 0x7f9bc4f96af0>,
12: <function DateTime_or_None at 0x7f9bc4717f70>,
13: <class 'int'>,
15: <class 'bytes'>,
245: <class 'bytes'>,
246: <class 'decimal.Decimal'>,
249: <class 'bytes'>,
250: <class 'bytes'>,
251: <class 'bytes'>,
252: <class 'bytes'>,
253: <class 'bytes'>,
254: <class 'bytes'>,
<class 'bool'>: <function Bool2Str at 0x7f9bc4723790>,
<class 'float'>: <function Float2Str at 0x7f9bc47239d0>,
<class 'int'>: <function Thing2Str at 0x7f9bc4723940>,
<class 'NoneType'>: <function None2NULL at 0x7f9bc4723a60>,
<class 'set'>: <function Set2Str at 0x7f9bc47238b0>,
<class 'array.array'>: <function array2Str at 0x7f9bc4723c10>,
<class 'decimal.Decimal'>: <function Decimal2Literal at 0x7f9bc4723b80>,
<class 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f9bc4723280>,
<class 'datetime.datetime'>: <function DateTime2literal at 0x7f9bc47231f0>,
<class 'datetime.date'>: <function Thing2Literal at 0x7f9bc4723af0>},
'database': 'www_yupobearing_',
'host': '0.0.0.0',
'password': 'yNkAaiYJmpxnbydW',
'port': 3306,
'user': 'www_yupobearing_'} |
| self | <django.db.backends.mysql.base.DatabaseWrapper object at 0x7f9bc4740910> |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/MySQLdb/__init__.py, line 123, in Connect
return bytes(x)
def Connect(*args, **kwargs):
"""Factory function for connections.Connection."""
from MySQLdb.connections import Connection
return Connection(*args, **kwargs)…
connect = Connection = Connect
__all__ = [
"BINARY",
| Variable | Value |
|---|---|
| Connection | <class 'MySQLdb.connections.Connection'> |
| args | () |
| kwargs | {'charset': 'utf8',
'client_flag': 2,
'conv': {0: <class 'decimal.Decimal'>,
1: <class 'int'>,
2: <class 'int'>,
3: <class 'int'>,
4: <class 'float'>,
5: <class 'float'>,
7: <function DateTime_or_None at 0x7f9bc4717f70>,
8: <class 'int'>,
9: <class 'int'>,
10: <function Date_or_None at 0x7f9bc4723160>,
11: <function typecast_time at 0x7f9bc4f96af0>,
12: <function DateTime_or_None at 0x7f9bc4717f70>,
13: <class 'int'>,
15: <class 'bytes'>,
245: <class 'bytes'>,
246: <class 'decimal.Decimal'>,
249: <class 'bytes'>,
250: <class 'bytes'>,
251: <class 'bytes'>,
252: <class 'bytes'>,
253: <class 'bytes'>,
254: <class 'bytes'>,
<class 'bool'>: <function Bool2Str at 0x7f9bc4723790>,
<class 'float'>: <function Float2Str at 0x7f9bc47239d0>,
<class 'int'>: <function Thing2Str at 0x7f9bc4723940>,
<class 'NoneType'>: <function None2NULL at 0x7f9bc4723a60>,
<class 'set'>: <function Set2Str at 0x7f9bc47238b0>,
<class 'array.array'>: <function array2Str at 0x7f9bc4723c10>,
<class 'decimal.Decimal'>: <function Decimal2Literal at 0x7f9bc4723b80>,
<class 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f9bc4723280>,
<class 'datetime.datetime'>: <function DateTime2literal at 0x7f9bc47231f0>,
<class 'datetime.date'>: <function Thing2Literal at 0x7f9bc4723af0>},
'database': 'www_yupobearing_',
'host': '0.0.0.0',
'password': 'yNkAaiYJmpxnbydW',
'port': 3306,
'user': 'www_yupobearing_'} |
/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/MySQLdb/connections.py, line 185, in __init__
if multi_statements:
client_flag |= CLIENT.MULTI_STATEMENTS
kwargs2["client_flag"] = client_flag
# PEP-249 requires autocommit to be initially off
autocommit = kwargs2.pop("autocommit", False)super().__init__(*args, **kwargs2)…
self.cursorclass = cursorclass
self.encoders = {k: v for k, v in conv.items() if type(k) is not int}self._server_version = tuple(
[numeric_part(n) for n in self.get_server_info().split(".")[:2]])
| Variable | Value |
|---|---|
| CLIENT | <module 'MySQLdb.constants.CLIENT' from '/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/MySQLdb/constants/CLIENT.py'> |
| FIELD_TYPE | <module 'MySQLdb.constants.FIELD_TYPE' from '/www/wwwroot/www.yupobearing.com/youpu_venv/lib/python3.8/site-packages/MySQLdb/constants/FIELD_TYPE.py'> |
| __class__ | <class 'MySQLdb.connections.Connection'> |
| _bytes_or_str | ((128, <class 'bytes'>), (None, <class 'str'>)) |
| args | () |
| autocommit | False |
| charset | 'utf8' |
| client_flag | 196610 |
| conv | {0: <class 'decimal.Decimal'>,
1: <class 'int'>,
2: <class 'int'>,
3: <class 'int'>,
4: <class 'float'>,
5: <class 'float'>,
7: <function DateTime_or_None at 0x7f9bc4717f70>,
8: <class 'int'>,
9: <class 'int'>,
10: <function Date_or_None at 0x7f9bc4723160>,
11: <function typecast_time at 0x7f9bc4f96af0>,
12: <function DateTime_or_None at 0x7f9bc4717f70>,
13: <class 'int'>,
15: <class 'bytes'>,
245: <class 'bytes'>,
246: <class 'decimal.Decimal'>,
249: <class 'bytes'>,
250: <class 'bytes'>,
251: <class 'bytes'>,
252: <class 'bytes'>,
253: <class 'bytes'>,
254: <class 'bytes'>,
<class 'bool'>: <function Bool2Str at 0x7f9bc4723790>,
<class 'float'>: <function Float2Str at 0x7f9bc47239d0>,
<class 'int'>: <function Thing2Str at 0x7f9bc4723940>,
<class 'NoneType'>: <function None2NULL at 0x7f9bc4723a60>,
<class 'set'>: <function Set2Str at 0x7f9bc47238b0>,
<class 'array.array'>: <function array2Str at 0x7f9bc4723c10>,
<class 'decimal.Decimal'>: <function Decimal2Literal at 0x7f9bc4723b80>,
<class 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f9bc4723280>,
<class 'datetime.datetime'>: <function DateTime2literal at 0x7f9bc47231f0>,
<class 'datetime.date'>: <function Thing2Literal at 0x7f9bc4723af0>} |
| conv2 | {0: <class 'decimal.Decimal'>,
1: <class 'int'>,
2: <class 'int'>,
3: <class 'int'>,
4: <class 'float'>,
5: <class 'float'>,
7: <function DateTime_or_None at 0x7f9bc4717f70>,
8: <class 'int'>,
9: <class 'int'>,
10: <function Date_or_None at 0x7f9bc4723160>,
11: <function typecast_time at 0x7f9bc4f96af0>,
12: <function DateTime_or_None at 0x7f9bc4717f70>,
13: <class 'int'>,
15: <class 'bytes'>,
245: <class 'bytes'>,
246: <class 'decimal.Decimal'>,
249: <class 'bytes'>,
250: <class 'bytes'>,
251: <class 'bytes'>,
252: <class 'bytes'>,
253: <class 'bytes'>,
254: <class 'bytes'>,
<class 'bool'>: <function Bool2Str at 0x7f9bc4723790>,
<class 'float'>: <function Float2Str at 0x7f9bc47239d0>,
<class 'int'>: <function Thing2Str at 0x7f9bc4723940>,
<class 'NoneType'>: <function None2NULL at 0x7f9bc4723a60>,
<class 'set'>: <function Set2Str at 0x7f9bc47238b0>,
<class 'array.array'>: <function array2Str at 0x7f9bc4723c10>,
<class 'decimal.Decimal'>: <function Decimal2Literal at 0x7f9bc4723b80>,
<class 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f9bc4723280>,
<class 'datetime.datetime'>: <function DateTime2literal at 0x7f9bc47231f0>,
<class 'datetime.date'>: <function Thing2Literal at 0x7f9bc4723af0>} |
| conversions | {0: <class 'decimal.Decimal'>,
1: <class 'int'>,
2: <class 'int'>,
3: <class 'int'>,
4: <class 'float'>,
5: <class 'float'>,
7: <function DateTime_or_None at 0x7f9bc4717f70>,
8: <class 'int'>,
9: <class 'int'>,
10: <function Date_or_None at 0x7f9bc4723160>,
11: <function TimeDelta_or_None at 0x7f9bc4723040>,
12: <function DateTime_or_None at 0x7f9bc4717f70>,
13: <class 'int'>,
15: <class 'bytes'>,
245: <class 'bytes'>,
246: <class 'decimal.Decimal'>,
249: <class 'bytes'>,
250: <class 'bytes'>,
251: <class 'bytes'>,
252: <class 'bytes'>,
253: <class 'bytes'>,
254: <class 'bytes'>,
<class 'bool'>: <function Bool2Str at 0x7f9bc4723790>,
<class 'float'>: <function Float2Str at 0x7f9bc47239d0>,
<class 'int'>: <function Thing2Str at 0x7f9bc4723940>,
<class 'NoneType'>: <function None2NULL at 0x7f9bc4723a60>,
<class 'set'>: <function Set2Str at 0x7f9bc47238b0>,
<class 'array.array'>: <function array2Str at 0x7f9bc4723c10>,
<class 'decimal.Decimal'>: <function Decimal2Literal at 0x7f9bc4723b80>,
<class 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f9bc4723280>,
<class 'datetime.datetime'>: <function DateTime2literal at 0x7f9bc47231f0>,
<class 'datetime.date'>: <function Thing2Literal at 0x7f9bc4723af0>} |
| cursorclass | <class 'MySQLdb.cursors.Cursor'> |
| k | 245 |
| kwargs | {'charset': 'utf8',
'client_flag': 2,
'conv': {0: <class 'decimal.Decimal'>,
1: <class 'int'>,
2: <class 'int'>,
3: <class 'int'>,
4: <class 'float'>,
5: <class 'float'>,
7: <function DateTime_or_None at 0x7f9bc4717f70>,
8: <class 'int'>,
9: <class 'int'>,
10: <function Date_or_None at 0x7f9bc4723160>,
11: <function typecast_time at 0x7f9bc4f96af0>,
12: <function DateTime_or_None at 0x7f9bc4717f70>,
13: <class 'int'>,
15: <class 'bytes'>,
245: <class 'bytes'>,
246: <class 'decimal.Decimal'>,
249: <class 'bytes'>,
250: <class 'bytes'>,
251: <class 'bytes'>,
252: <class 'bytes'>,
253: <class 'bytes'>,
254: <class 'bytes'>,
<class 'bool'>: <function Bool2Str at 0x7f9bc4723790>,
<class 'float'>: <function Float2Str at 0x7f9bc47239d0>,
<class 'int'>: <function Thing2Str at 0x7f9bc4723940>,
<class 'NoneType'>: <function None2NULL at 0x7f9bc4723a60>,
<class 'set'>: <function Set2Str at 0x7f9bc47238b0>,
<class 'array.array'>: <function array2Str at 0x7f9bc4723c10>,
<class 'decimal.Decimal'>: <function Decimal2Literal at 0x7f9bc4723b80>,
<class 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f9bc4723280>,
<class 'datetime.datetime'>: <function DateTime2literal at 0x7f9bc47231f0>,
<class 'datetime.date'>: <function Thing2Literal at 0x7f9bc4723af0>},
'database': 'www_yupobearing_',
'host': '0.0.0.0',
'password': 'yNkAaiYJmpxnbydW',
'port': 3306,
'user': 'www_yupobearing_'} |
| kwargs2 | {'charset': 'utf8',
'client_flag': 196610,
'conv': {0: <class 'decimal.Decimal'>,
1: <class 'int'>,
2: <class 'int'>,
3: <class 'int'>,
4: <class 'float'>,
5: <class 'float'>,
7: <function DateTime_or_None at 0x7f9bc4717f70>,
8: <class 'int'>,
9: <class 'int'>,
10: <function Date_or_None at 0x7f9bc4723160>,
11: <function typecast_time at 0x7f9bc4f96af0>,
12: <function DateTime_or_None at 0x7f9bc4717f70>,
13: <class 'int'>,
15: <class 'bytes'>,
245: <class 'bytes'>,
246: <class 'decimal.Decimal'>,
249: <class 'bytes'>,
250: <class 'bytes'>,
251: <class 'bytes'>,
252: <class 'bytes'>,
253: <class 'bytes'>,
254: <class 'bytes'>,
<class 'bool'>: <function Bool2Str at 0x7f9bc4723790>,
<class 'float'>: <function Float2Str at 0x7f9bc47239d0>,
<class 'int'>: <function Thing2Str at 0x7f9bc4723940>,
<class 'NoneType'>: <function None2NULL at 0x7f9bc4723a60>,
<class 'set'>: <function Set2Str at 0x7f9bc47238b0>,
<class 'array.array'>: <function array2Str at 0x7f9bc4723c10>,
<class 'decimal.Decimal'>: <function Decimal2Literal at 0x7f9bc4723b80>,
<class 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f9bc4723280>,
<class 'datetime.datetime'>: <function DateTime2literal at 0x7f9bc47231f0>,
<class 'datetime.date'>: <function Thing2Literal at 0x7f9bc4723af0>},
'database': 'www_yupobearing_',
'host': '0.0.0.0',
'password': 'yNkAaiYJmpxnbydW',
'port': 3306,
'user': 'www_yupobearing_'} |
| multi_statements | True |
| proxy | <built-in function proxy> |
| self | <_mysql.connection open to '(null)' at 0x2bf0010> |
| sql_mode | '' |
| use_unicode | True |
| v | <class 'bytes'> |
[unable to retrieve the current user]
No GET data
No POST data
No FILES data
No cookie data
| Variable | Value |
|---|---|
| CONTENT_LENGTH | '' |
| CONTENT_TYPE | '' |
| DOCUMENT_ROOT | '/www/wwwroot/www.yupobearing.com' |
| HTTPS | 'on' |
| HTTP_ACCEPT | '*/*' |
| HTTP_ACCEPT_ENCODING | 'gzip, br, zstd, deflate' |
| HTTP_CACHE_CONTROL | 'max-age=259200' |
| HTTP_CONNECTION | 'keep-alive' |
| HTTP_HOST | 'www.yupobearing.com' |
| HTTP_REFERER | 'http://fpjbg.com/www.yupobearing.com/sitemap.xml' |
| HTTP_USER_AGENT | ('Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; '
'ClaudeBot/1.0; +claudebot@anthropic.com)') |
| HTTP_VIA | '1.1 squid-proxy-5b5d847c96-7vtqz (squid/6.13)' |
| HTTP_X_FORWARDED_FOR | '10.1.179.246' |
| PATH_INFO | '/www.yupobearing.com/sitemap.xml' |
| QUERY_STRING | '' |
| REMOTE_ADDR | '23.234.60.126' |
| REMOTE_PORT | '33596' |
| REQUEST_METHOD | 'GET' |
| REQUEST_SCHEME | 'https' |
| REQUEST_URI | '/www.yupobearing.com/sitemap.xml' |
| SCRIPT_NAME | '' |
| SERVER_NAME | 'www.yupobearing.com' |
| SERVER_PORT | '443' |
| SERVER_PROTOCOL | 'HTTP/1.1' |
| UWSGI_CHDIR | '/www/wwwroot/www.yupobearing.com/' |
| UWSGI_SCRIPT | 'sx_cms.wsgi' |
| uwsgi.core | 0 |
| uwsgi.node | b'spider160' |
| uwsgi.version | b'2.0.20' |
| wsgi.errors | <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> |
| wsgi.file_wrapper | <built-in function uwsgi_sendfile> |
| wsgi.input | <uwsgi._Input object at 0x7f9bc2746110> |
| wsgi.multiprocess | False |
| wsgi.multithread | True |
| wsgi.run_once | False |
| wsgi.url_scheme | 'https' |
| wsgi.version | (1, 0) |
sx_cms.settings| Setting | Value |
|---|---|
| ABSOLUTE_URL_OVERRIDES | {} |
| ADMINS | [] |
| ALLOWED_HOSTS | ['*'] |
| APPEND_SLASH | True |
| AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
| AUTH_PASSWORD_VALIDATORS | '********************' |
| AUTH_USER_MODEL | 'auth.User' |
| BASE_DIR | PosixPath('/www/wwwroot/www.yupobearing.com') |
| CACHES | {'default': {'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
'LOCATION': 'my_cache_table',
'OPTIONS': {'CULL_FREQUENCY': 2, 'MAX_ENTRIES': 300},
'TIMEOUT': 86400}} |
| CACHE_MIDDLEWARE_ALIAS | 'default' |
| CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
| CACHE_MIDDLEWARE_SECONDS | 600 |
| 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 |
| DATABASES | {'default': {'ATOMIC_REQUESTS': False,
'AUTOCOMMIT': True,
'CONN_MAX_AGE': 0,
'ENGINE': 'django.db.backends.mysql',
'HOST': '0.0.0.0',
'NAME': 'www_yupobearing_',
'OPTIONS': {},
'PASSWORD': '********************',
'PORT': '3306',
'TEST': {'CHARSET': None,
'COLLATION': None,
'MIGRATE': True,
'MIRROR': None,
'NAME': None},
'TIME_ZONE': None,
'USER': 'www_yupobearing_'}} |
| 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', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
| DATE_FORMAT | 'N j, Y' |
| DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
| DEBUG | True |
| DEBUG_PROPAGATE_EXCEPTIONS | False |
| DECIMAL_SEPARATOR | '.' |
| DEFAULT_AUTO_FIELD | 'django.db.models.BigAutoField' |
| DEFAULT_CHARSET | 'utf-8' |
| DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
| DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
| DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
| DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
| DEFAULT_HASHING_ALGORITHM | 'sha256' |
| DEFAULT_INDEX_TABLESPACE | '' |
| DEFAULT_TABLESPACE | '' |
| DISALLOWED_USER_AGENTS | [] |
| DJANGO_ADMIN_GLOBAL_SIDEBAR_MENUS | [{'icon': 'fa fa-home', 'title': '首页', 'url': '/sxkjcms-admin/'},
{'children': [{'icon': 'fas fa-list',
'model': 'site_set.site',
'permissions': ['django_admin_global_sidebar_example'],
'title': '网站配置'},
{'icon': 'fas fa-list',
'permissions': ['django_admin_global_sidebar_example'],
'title': '批量推送百度',
'url': '/sxkjcms-admin/site_set/baidufanhuizhi/all_tui_view'},
{'icon': 'fas fa-list',
'permissions': ['django_admin_global_sidebar_example'],
'title': '浏览推送数据',
'url': '/sxkjcms-admin/site_set/baidufanhuizhi/view'},
{'icon': 'fas fa-list',
'model': 'site_set.mingan',
'permissions': ['django_admin_global_sidebar_example'],
'title': '敏感词管理'},
{'icon': 'fas fa-list',
'permissions': ['django_admin_global_sidebar_example'],
'title': '启动敏感词收集',
'url': '/sxkjcms-admin/site_set/mingan/mgc'},
{'icon': 'fas fa-list',
'permissions': ['django_admin_global_sidebar_example'],
'title': '缓存管理',
'url': '/sxkjcms-admin/site_set/site/cache_view_page'}],
'icon': 'fa fa-cogs',
'title': '网站配置'},
{'children': [{'icon': 'fas fa-list',
'model': 'goods.goodscatalog',
'permissions': ['django_admin_global_sidebar_example'],
'title': '产品分类'},
{'icon': 'fas fa-list',
'model': 'goods.goods',
'permissions': ['django_admin_global_sidebar_example'],
'title': '产品信息'}],
'icon': 'fa fa-th-list',
'title': '产品管理'},
{'children': [{'icon': 'fas fa-list',
'model': 'news.newscatalog',
'permissions': ['django_admin_global_sidebar_example'],
'title': '文章分类'},
{'icon': 'fas fa-list',
'model': 'news.news',
'permissions': ['django_admin_global_sidebar_example'],
'title': '文章信息'}],
'icon': 'fa fa-book-reader',
'title': '文章管理'},
{'children': [{'icon': 'fas fa-list',
'model': 'tuwen.tuwencatalog',
'permissions': ['django_admin_global_sidebar_example'],
'title': '图文分类'},
{'icon': 'fas fa-list',
'model': 'tuwen.tuwen',
'permissions': ['django_admin_global_sidebar_example'],
'title': '图文信息'}],
'icon': 'fa fa-qrcode',
'title': '图文管理'},
{'children': [{'icon': 'fas fa-list',
'model': 'page.page',
'permissions': ['django_admin_global_sidebar_example'],
'title': '单页管理'},
{'icon': 'fas fa-list',
'model': 'page.job',
'permissions': ['django_admin_global_sidebar_example'],
'title': '人才招聘'},
{'icon': 'fas fa-list',
'model': 'page.goodstag',
'permissions': ['django_admin_global_sidebar_example'],
'title': '产品标签'},
{'icon': 'fas fa-list',
'model': 'page.newstag',
'permissions': ['django_admin_global_sidebar_example'],
'title': '文章标签'},
{'icon': 'fas fa-list',
'model': 'page.tuwentag',
'permissions': ['django_admin_global_sidebar_example'],
'title': '图文标签'}],
'icon': 'fa fa-list',
'title': '企业信息'},
{'children': [{'icon': 'fas fa-list',
'model': 'links.links',
'permissions': ['django_admin_global_sidebar_example'],
'title': '友情链接'},
{'icon': 'fas fa-list',
'model': 'links.mode',
'permissions': ['django_admin_global_sidebar_example'],
'title': '内部链接'},
{'icon': 'fas fa-list',
'permissions': ['django_admin_global_sidebar_example'],
'title': '启动统计',
'url': '/sxkjcms-admin/links/mode/links'}],
'icon': 'fa fa-link',
'title': '链接管理'},
{'children': [{'icon': 'fas fa-list',
'model': 'form.message',
'permissions': ['django_admin_global_sidebar_example'],
'title': '留言列表'}],
'icon': 'fa fa-swatchbook',
'title': '留言管理'},
{'children': [{'icon': 'fas fa-list',
'model': 'slide_set.pcslide',
'permissions': ['django_admin_global_sidebar_example'],
'title': 'PC站幻灯'},
{'icon': 'fas fa-list',
'model': 'slide_set.mslide',
'permissions': ['django_admin_global_sidebar_example'],
'title': '移动站幻灯'}],
'icon': 'fa fa-image',
'title': '幻灯管理'},
{'children': [{'icon': 'fas fa-list',
'model': 'sitemap_set.sitemap',
'permissions': ['django_admin_global_sidebar_example'],
'title': 'sitemap管理'}],
'icon': 'fa fa-sitemap',
'title': '站点地图'},
{'children': [{'icon': 'fas fa-user-edit',
'model': 'auth.user',
'permissions': ['auth.view_user'],
'title': '用户管理'},
{'icon': 'fas fa-users',
'model': 'auth.group',
'permissions': ['auth.view_group'],
'title': '用户组管理'},
{'icon': 'fas fa-book-open',
'title': '日志管理',
'url': '/sxkjcms-admin/admin/logentry/'}],
'icon': 'fa fa-cogs',
'title': '用户管理'}] |
| EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
| EMAIL_HOST | 'smtp.163.com' |
| EMAIL_HOST_PASSWORD | '********************' |
| EMAIL_HOST_USER | 'sxkj_service@163.com' |
| 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_UPLOAD_DIRECTORY_PERMISSIONS | None |
| FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
| FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
| FILE_UPLOAD_PERMISSIONS | 420 |
| FILE_UPLOAD_TEMP_DIR | None |
| FIRST_DAY_OF_WEEK | 0 |
| FIXTURE_DIRS | [] |
| FORCE_SCRIPT_NAME | None |
| FORMAT_MODULE_PATH | None |
| FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
| IGNORABLE_404_URLS | [] |
| INSTALLED_APPS | ['django_admin_global_sidebar', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sitemaps', 'goods', 'news', 'page', 'form', 'tuwen', 'links', 'slide_set', 'site_set', 'sitemap_set', 'sxkj_admin', 'requests'] |
| INTERNAL_IPS | [] |
| LANGUAGES | [('af', 'Afrikaans'),
('ar', 'Arabic'),
('ar-dz', 'Algerian Arabic'),
('ast', 'Asturian'),
('az', 'Azerbaijani'),
('bg', 'Bulgarian'),
('be', 'Belarusian'),
('bn', 'Bengali'),
('br', 'Breton'),
('bs', 'Bosnian'),
('ca', 'Catalan'),
('cs', 'Czech'),
('cy', 'Welsh'),
('da', 'Danish'),
('de', 'German'),
('dsb', 'Lower Sorbian'),
('el', 'Greek'),
('en', 'English'),
('en-au', 'Australian English'),
('en-gb', 'British English'),
('eo', 'Esperanto'),
('es', 'Spanish'),
('es-ar', 'Argentinian Spanish'),
('es-co', 'Colombian Spanish'),
('es-mx', 'Mexican Spanish'),
('es-ni', 'Nicaraguan Spanish'),
('es-ve', 'Venezuelan Spanish'),
('et', 'Estonian'),
('eu', 'Basque'),
('fa', 'Persian'),
('fi', 'Finnish'),
('fr', 'French'),
('fy', 'Frisian'),
('ga', 'Irish'),
('gd', 'Scottish Gaelic'),
('gl', 'Galician'),
('he', 'Hebrew'),
('hi', 'Hindi'),
('hr', 'Croatian'),
('hsb', 'Upper Sorbian'),
('hu', 'Hungarian'),
('hy', 'Armenian'),
('ia', 'Interlingua'),
('id', 'Indonesian'),
('ig', 'Igbo'),
('io', 'Ido'),
('is', 'Icelandic'),
('it', 'Italian'),
('ja', 'Japanese'),
('ka', 'Georgian'),
('kab', 'Kabyle'),
('kk', 'Kazakh'),
('km', 'Khmer'),
('kn', 'Kannada'),
('ko', 'Korean'),
('ky', 'Kyrgyz'),
('lb', 'Luxembourgish'),
('lt', 'Lithuanian'),
('lv', 'Latvian'),
('mk', 'Macedonian'),
('ml', 'Malayalam'),
('mn', 'Mongolian'),
('mr', 'Marathi'),
('my', 'Burmese'),
('nb', 'Norwegian Bokmål'),
('ne', 'Nepali'),
('nl', 'Dutch'),
('nn', 'Norwegian Nynorsk'),
('os', 'Ossetic'),
('pa', 'Punjabi'),
('pl', 'Polish'),
('pt', 'Portuguese'),
('pt-br', 'Brazilian Portuguese'),
('ro', 'Romanian'),
('ru', 'Russian'),
('sk', 'Slovak'),
('sl', 'Slovenian'),
('sq', 'Albanian'),
('sr', 'Serbian'),
('sr-latn', 'Serbian Latin'),
('sv', 'Swedish'),
('sw', 'Swahili'),
('ta', 'Tamil'),
('te', 'Telugu'),
('tg', 'Tajik'),
('th', 'Thai'),
('tk', 'Turkmen'),
('tr', 'Turkish'),
('tt', 'Tatar'),
('udm', 'Udmurt'),
('uk', 'Ukrainian'),
('ur', 'Urdu'),
('uz', 'Uzbek'),
('vi', 'Vietnamese'),
('zh-hans', 'Simplified Chinese'),
('zh-hant', 'Traditional Chinese')] |
| LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'fa', 'ur'] |
| LANGUAGE_CODE | 'zh-Hans' |
| LANGUAGE_COOKIE_AGE | None |
| LANGUAGE_COOKIE_DOMAIN | None |
| LANGUAGE_COOKIE_HTTPONLY | False |
| LANGUAGE_COOKIE_NAME | 'django_language' |
| LANGUAGE_COOKIE_PATH | '/' |
| LANGUAGE_COOKIE_SAMESITE | None |
| LANGUAGE_COOKIE_SECURE | False |
| LOCALE_PATHS | [] |
| LOGGING | {} |
| LOGGING_CONFIG | 'logging.config.dictConfig' |
| LOGIN_REDIRECT_URL | '/accounts/profile/' |
| LOGIN_URL | '/accounts/login/' |
| LOGOUT_REDIRECT_URL | None |
| MANAGERS | [] |
| MEDIA_ROOT | '/www/wwwroot/www.yupobearing.com/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', 'sxkj_admin.middleware.InvalidQueryStringMiddleware'] |
| MIGRATION_MODULES | {} |
| MONTH_DAY_FORMAT | 'F j' |
| NUMBER_GROUPING | 0 |
| PASSWORD_HASHERS | '********************' |
| PASSWORD_RESET_TIMEOUT | '********************' |
| PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
| PREPEND_WWW | False |
| ROOT_URLCONF | 'sx_cms.urls' |
| SECRET_KEY | '********************' |
| SECURE_BROWSER_XSS_FILTER | False |
| SECURE_CONTENT_TYPE_NOSNIFF | True |
| SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
| SECURE_HSTS_PRELOAD | False |
| SECURE_HSTS_SECONDS | 0 |
| SECURE_PROXY_SSL_HEADER | None |
| SECURE_REDIRECT_EXEMPT | [] |
| SECURE_REFERRER_POLICY | 'strict-origin-when-cross-origin' |
| 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 | 'sx_cms.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 | [] |
| 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': ['/www/wwwroot/www.yupobearing.com/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',
'sx_cms.contexts.global_variable']}}] |
| 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/Shanghai' |
| USE_I18N | True |
| USE_L10N | True |
| USE_THOUSAND_SEPARATOR | False |
| USE_TZ | False |
| USE_X_FORWARDED_HOST | False |
| USE_X_FORWARDED_PORT | False |
| WSGI_APPLICATION | 'sx_cms.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.