例句
1.我们不要可怜这种只想不劳而获的人。
例句
1.邻居们都非常照顾这个可怜的孤儿。
1. 值得怜悯。
引
1. 汝欲返性情而无由入,可怜哉!
《庄子·庚桑楚》
2. 可怜身上衣正单,心忧炭贱愿天寒。
唐
《卖炭翁》诗
白居易
3. 然情状可怜,亦使人心脾凄动。
清
《阅微草堂笔记·滦阳消夏录四》
纪昀
4. 伶仃地显出憔悴可怜模样。
《野草·风筝》
鲁迅
5. 从此里中父老,人人薄许武之所为,都可怜他两个兄弟。
《醒世恒言·三孝廉让产立高名》
6. 赵小姐似乎很可怜黄太太的无知。
《搬的喜剧》
茅盾
7. 掌柜的,行行好,可怜可怜吧!
《茶馆》第二幕
老舍
2. 可爱。
引
1. 东家有贤女,自名秦罗敷。可怜体无比,阿母为汝求。
《玉台新咏·无名氏古诗〈为焦仲卿妻作〉》
2. 可怜九马争神骏,顾视清高气深稳。
唐
《韦讽录事宅观曹将军画马图歌》
杜甫
3. 浅束深妆最可怜,明眸玉立更娟娟。
明
《浣溪沙·题情》词
张仲立
4. 本来是黄色的海面被这夕照一烘,更加红艳得可怜了。
《海上通信》
郁达夫
3. 可喜。
引
1. 可怜今夜千门里,银汉星回一道通。
唐
《萧驸马宅花烛》诗
王昌龄
2. 可怜春浅游人少,好傍池边下马行。
唐
《曲江早春》诗
白居易
4. 可羡。
引
1. 始知边将真富贵,可怜人马相辉光。
唐
《卫节度赤骠马歌》
岑参
2. 姊妹兄弟皆列土,可怜光彩生门户。
唐
《长恨歌》
白居易
5. 可惜。
引
1. 童谣曰:“可怜安乐寺,了了树头悬。”
唐
《朝野佥载》卷一
张𬸦
2. 可怜芳岁青山里,惟有松枝好寄君。
唐
《早春归盩
卢纶
3. 可怜无益费精神,有似黄金掷虚牝。
唐
《赠崔立之评事》诗
韩愈
4. 平地已疏英士狱,青山先斩佞臣头。可怜天使真尸位,坐阅危亡自不羞。
《水浒传》第五九回
6. 可怪。
引
1. 翠瓜碧李沉玉甃,赤梨蒲萄寒露成。可怜先不异枝蔓,此物娟娟长远生。
唐
《解闷》诗之十一
杜甫
2. 可怜夜半虚前席,不问苍生问鬼神。
唐
《贾生》诗
李商隐
7. 异常。
引
1. 碧户朱窗小洞房,玉醅新压嫩鹅黄,半青橙子可怜香。
宋
《浣溪沙·武康社日》词
毛滂
2. 山上的空气,真静得可怜。
《迟桂花》
郁达夫
8. 极言数量少或质量坏得不值一提。
引
1. 〔汤富海〕变卖了一点可怜的家产还他还不够,又强迫要汤阿英这个十四岁的小女孩去抵债。
《上海的早晨》第一部三
周而复
2. 然而他太无力了,他的救援是可怜的。
《占屋》第一部二
王西彦
list index out of range
Request Method: | GET |
---|---|
Request URL: | http://127.0.0.1:443/mitacontent/?keyword=%E5%8F%AF%E6%80%9C%E6%98%AF%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D&password=1433744303 |
Django Version: | 4.2.14 |
Exception Type: | IndexError |
Exception Value: | list index out of range |
Exception Location: | /www/server/pyporject_evn/backend_venv/lib/python3.10/site-packages/django/db/models/query.py, line 432, in __getitem__ |
Raised during: | zhandian.views.MITaAIViews.MiTaContents |
Python Executable: | /www/server/pyporject_evn/backend_venv/bin/python |
Python Version: | 3.10.1 |
Python Path: | ['/www/wwwroot/xiezuo/backend', '/www/wwwroot/xiezuo/backend/plugins', '/www/wwwroot/xiezuo/backend', '/www/server/pyporject_evn/backend_venv/lib/python310.zip', '/www/server/pyporject_evn/backend_venv/lib/python3.10', '/www/server/pyporject_evn/backend_venv/lib/python3.10/lib-dynload', '/www/server/pyporject_evn/backend_venv/lib/python3.10/site-packages', '/www/server/pyporject_evn/backend_venv/lib/python3.10/site-packages/setuptools/_vendor'] |
Server time: | Mon, 25 Nov 2024 12:40:03 +0800 |
/www/server/pyporject_evn/backend_venv/lib/python3.10/site-packages/django/core/handlers/exception.py
, line 55, in inner 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 | IndexError('list index out of range') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x71a96e231720>> |
request | <WSGIRequest: GET '/mitacontent/?keyword=%E5%8F%AF%E6%80%9C%E6%98%AF%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D&password=1433744303'> |
/www/server/pyporject_evn/backend_venv/lib/python3.10/site-packages/django/core/handlers/base.py
, line 197, in _get_response if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is an asynchronous view, run it in a subthread.
if iscoroutinefunction(wrapped_callback):
wrapped_callback = async_to_sync(wrapped_callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
# Complain if the view returned None (a common error).
Variable | Value |
---|---|
callback | <function MiTaContents at 0x71a966b8ed40> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method ApiLoggingMiddleware.process_view of <ApiLoggingMiddleware get_response=BaseHandler._get_response>> |
request | <WSGIRequest: GET '/mitacontent/?keyword=%E5%8F%AF%E6%80%9C%E6%98%AF%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D&password=1433744303'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x71a96e231720> |
wrapped_callback | <function MiTaContents at 0x71a966b8ed40> |
/www/wwwroot/xiezuo/backend/zhandian/views/MITaAIViews.py
, line 66, in MiTaContents def MiTaContents(request):
# 获取关键词
keyword = request.GET.get('keyword')
password = request.GET.get('password')
if password != '1433744303' or keyword == None:
return HttpResponse("")
content = MiTaContent(keyword)…
# 返回生成的内容
return HttpResponse(content)
Variable | Value |
---|---|
keyword | '可怜是什么意思' |
password | '1433744303' |
request | <WSGIRequest: GET '/mitacontent/?keyword=%E5%8F%AF%E6%80%9C%E6%98%AF%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D&password=1433744303'> |
/www/wwwroot/xiezuo/backend/plugins/MiTaAi.py
, line 17, in MiTaContent # http://192.168.10.31:8000/v1/chat/completions
def MiTaContent(keyword):
a=0
ApiInfo=''
while a<3:
# 获取接口 状态为正常
MiTaapi = TaMiModel.objects.filter(status=True)
ApiInfo = random.choice(MiTaapi)…
today = timezone.now().date()
# 今日的统计数量
# 获取或创建今日的统计记录
count_record, created = TaMiApiConutModel.objects.get_or_create(
TaMi=ApiInfo,
Variable | Value |
---|---|
ApiInfo | '' |
MiTaapi | <QuerySet []> |
a | 0 |
keyword | '可怜是什么意思' |
/www/server/pyporject_evn/backend_venv/lib/python3.10/random.py
, line 378, in choice ## -------------------- sequence methods -------------------
def choice(self, seq):
"""Choose a random element from a non-empty sequence."""
# raises IndexError if seq is empty
return seq[self._randbelow(len(seq))]…
def shuffle(self, x, random=None):
"""Shuffle list x in place, and return None.
Optional argument random is a 0-argument function returning a
random float in [0.0, 1.0); if it is the default None, the
Variable | Value |
---|---|
self | <random.Random object at 0x56c2b8d13d00> |
seq | <QuerySet []> |
/www/server/pyporject_evn/backend_venv/lib/python3.10/site-packages/django/db/models/query.py
, line 432, in __getitem__ (k.start is not None and k.start < 0)
or (k.stop is not None and k.stop < 0)
)
):
raise ValueError("Negative indexing is not supported.")
if self._result_cache is not None:
return self._result_cache[k]…
if isinstance(k, slice):
qs = self._chain()
if k.start is not None:
start = int(k.start)
else:
Variable | Value |
---|---|
k | 0 |
self | <QuerySet []> |
AnonymousUser
Variable | Value |
---|---|
keyword | '可怜是什么意思' |
password | '1433744303' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
BT_TASK | '1' |
CONTENT_LENGTH | '' |
CONTENT_TYPE | 'text/plain' |
DJANGO_SETTINGS_MODULE | 'application.settings' |
GATEWAY_INTERFACE | 'CGI/1.1' |
HOME | '/root' |
HTTP_ACCEPT | '*/*' |
HTTP_ACCEPT_ENCODING | 'gzip, deflate' |
HTTP_CONNECTION | 'upgrade' |
HTTP_HOST | '127.0.0.1:443' |
HTTP_USER_AGENT | 'python-requests/2.31.0' |
HTTP_X_FORWARDED_FOR | '8.212.45.8' |
HTTP_X_HOST | 'xiezuoapi.junyilawyer.cn:443' |
HTTP_X_REAL_IP | '8.212.45.8' |
HTTP_X_SCHEME | 'https' |
LANG | 'en_US.UTF-8' |
LOGNAME | 'root' |
LS_COLORS | 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:' |
'/var/mail/root' | |
OLDPWD | '/www/server/panel' |
PATH | '/www/server/pyporject_evn/backend_venv/bin:/www/wwwroot/xiezuo/backend:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin' |
PATH_INFO | '/mitacontent/' |
PWD | '/www/wwwroot/xiezuo/backend' |
QUERY_STRING | 'keyword=%E5%8F%AF%E6%80%9C%E6%98%AF%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D&password=1433744303' |
REMOTE_ADDR | '127.0.0.1' |
REMOTE_HOST | '' |
REQUEST_METHOD | 'GET' |
RUN_MAIN | 'true' |
SCRIPT_NAME | '' |
SERVER_NAME | 'iZj6c7hfcrzsmklgjk9bphZ' |
SERVER_PORT | '8002' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'WSGIServer/0.2' |
SHELL | '/bin/bash' |
SHLVL | '2' |
SUDO_COMMAND | '/usr/bin/bash install.sh' |
SUDO_GID | '0' |
SUDO_UID | '0' |
SUDO_USER | 'root' |
TERM | 'xterm-256color' |
TZ | 'Asia/Shanghai' |
USER | 'root' |
VIRTUAL_ENV | '/www/server/panel/pyenv' |
_ | '/bin/nohup' |
wsgi.errors | <colorama.ansitowin32.StreamWrapper object at 0x71a96f16c160> |
wsgi.file_wrapper | <class 'wsgiref.util.FileWrapper'> |
wsgi.input | <django.core.handlers.wsgi.LimitedStream object at 0x71a964aeea10> |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
application.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
ALL_MODELS_OBJECTS | [] |
API_LOG_ENABLE | '********************' |
API_LOG_METHODS | '********************' |
API_MODEL_MAP | '********************' |
APPEND_SLASH | True |
ASGI_APPLICATION | 'application.asgi.application' |
AUTHENTICATION_BACKENDS | ['dvadmin.utils.backends.CustomBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'system.Users' |
BASE_DIR | PosixPath('/www/wwwroot/xiezuo/backend') |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CAPTCHA_BACKGROUND_COLOR | '#F5F7F4' |
CAPTCHA_CHALLENGE_FUNCT | 'captcha.helpers.math_challenge' |
CAPTCHA_FONT_SIZE | 36 |
CAPTCHA_FOREGROUND_COLOR | '#64DAAA' |
CAPTCHA_IMAGE_SIZE | (160, 46) |
CAPTCHA_LENGTH | 4 |
CAPTCHA_NOISE_FUNCTIONS | ('captcha.helpers.noise_arcs',) |
CAPTCHA_OUTPUT_FORMAT | '%(image)s %(text_field)s %(hidden_field)s ' |
CAPTCHA_TIMEOUT | 1 |
CELERY_BROKER_DB | 3 |
CELERY_TIMEZONE | 'Asia/Shanghai' |
CHANNEL_LAYERS | {'default': {'BACKEND': 'channels.layers.InMemoryChannelLayer'}} |
COLUMN_EXCLUDE_APPS | ['channels', 'captcha'] |
CONSOLE_LOG_FORMAT | '[%(asctime)s][%(name)s.%(funcName)s():%(lineno)d] [%(levelname)s] %(message)s' |
CORS_ALLOW_CREDENTIALS | True |
CORS_ORIGIN_ALLOW_ALL | True |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_MASKED | 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_HEALTH_CHECKS': False, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'rm-j6c1phy9e1c7s9z6i.mysql.rds.aliyuncs.com', 'NAME': 'xiezuo', 'OPTIONS': {'connect_timeout': 10}, 'PASSWORD': '********************', 'PORT': 3306, 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'xiezuo'}} |
DATABASE_ENGINE | 'django.db.backends.mysql' |
DATABASE_HOST | 'rm-j6c1phy9e1c7s9z6i.mysql.rds.aliyuncs.com' |
DATABASE_NAME | 'xiezuo' |
DATABASE_PASSWORD | '********************' |
DATABASE_PORT | 3306 |
DATABASE_ROUTERS | [] |
DATABASE_USER | 'xiezuo' |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATA_UPLOAD_MAX_NUMBER_FILES | 100 |
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.AutoField' |
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_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DICTIONARY_CONFIG | {'button_status_bool': {'children': [{'color': 'success', 'label': '启用', 'type': 6, 'value': 'true'}, {'color': 'danger', 'label': '禁用', 'type': 6, 'value': 'false'}], 'id': 1, 'value': 'button_status_bool'}, 'button_status_number': {'children': [{'color': 'success', 'label': '启用', 'type': 1, 'value': '1'}, {'color': 'danger', 'label': '禁用', 'type': 1, 'value': '0'}], 'id': 13, 'value': 'button_status_number'}, 'button_whether_bool': {'children': [{'color': 'success', 'label': '是', 'type': 6, 'value': 'true'}, {'color': 'danger', 'label': '否', 'type': 6, 'value': 'false'}], 'id': 16, 'value': 'button_whether_bool'}, 'button_whether_number': {'children': [{'color': 'success', 'label': '是', 'type': 1, 'value': '1'}, {'color': 'danger', 'label': '否', 'type': 1, 'value': '2'}], 'id': 19, 'value': 'button_whether_number'}, 'config_form_type': {'children': [{'color': None, 'label': 'text', 'type': 1, 'value': '0'}, {'color': '', 'label': 'textarea', 'type': 1, 'value': '3'}, {'color': '', 'label': 'number', 'type': 1, 'value': '10'}, {'color': None, 'label': 'datetime', 'type': 1, 'value': '1'}, {'color': None, 'label': 'date', 'type': 1, 'value': '2'}, {'color': '', 'label': 'time', 'type': 1, 'value': '15'}, {'color': None, 'label': 'select', 'type': 1, 'value': '4'}, {'color': None, 'label': 'checkbox', 'type': 1, 'value': '5'}, {'color': None, 'label': 'radio', 'type': 1, 'value': '6'}, {'color': '', 'label': 'switch', 'type': 1, 'value': '9'}, {'color': '', 'label': '文件附件', 'type': 1, 'value': '8'}, {'color': '', 'label': '图片(单张)', 'type': 1, 'value': '7'}, {'color': '', 'label': '图片(多张)', 'type': 1, 'value': '12'}, {'color': '', 'label': '数组', 'type': 1, 'value': '11'}, {'color': '', 'label': '关联表', 'type': 1, 'value': '13'}, {'color': '', 'label': '关联表(多选)', 'type': 1, 'value': '14'}], 'id': 25, 'value': 'config_form_type'}, 'gender': {'children': [{'color': None, 'label': '未知', 'type': 1, 'value': '0'}, {'color': None, 'label': '男', 'type': 1, 'value': '1'}, {'color': None, 'label': '女', 'type': 1, 'value': '2'}], 'id': 42, 'value': 'gender'}, 'system_button': {'children': [{'color': 'success', 'label': '新增', 'type': 0, 'value': 'Create'}, {'color': 'primary', 'label': '编辑', 'type': 0, 'value': 'Update'}, {'color': 'danger', 'label': '删除', 'type': 0, 'value': 'Delete'}, {'color': 'info', 'label': '详情', 'type': 0, 'value': 'Retrieve'}, {'color': 'warning', 'label': '查询', 'type': 0, 'value': 'Search'}, {'color': 'success', 'label': '保存', 'type': 0, 'value': 'Save'}, {'color': 'primary', 'label': '导入', 'type': 0, 'value': 'Import'}, {'color': 'warning', 'label': '导出', 'type': 0, 'value': 'Export'}], 'id': 4, 'value': 'system_button'}, 'user_type': {'children': [{'color': None, 'label': '后台用户', 'type': 1, 'value': '0'}, {'color': None, 'label': '前台用户', 'type': 1, 'value': '1'}], 'id': 22, 'value': 'user_type'}} |
DISALLOWED_USER_AGENTS | [] |
DJANGO_CELERY_BEAT_TZ_AWARE | False |
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 |
ENABLE_LOGIN_ANALYSIS_LOG | True |
ERROR_LOGS_FILE | '/www/wwwroot/xiezuo/backend/logs/error.log' |
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' |
HOST | 'https://xiezuoapi.junyilawyer.cn' |
IGNORABLE_404_URLS | [] |
INITIALIZE_LIST | [] |
INITIALIZE_RESET_LIST | [] |
INSTALLED_APPS | ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django_comment_migrate', 'rest_framework', 'django_filters', 'corsheaders', 'drf_yasg', 'captcha', 'channels', 'dvadmin.system', 'zhandian'] |
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'), ('ckb', 'Central Kurdish (Sorani)'), ('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'), ('ms', 'Malay'), ('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', 'ckb', '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 | {'disable_existing_loggers': False, 'formatters': {'console': {'datefmt': '%Y-%m-%d %H:%M:%S', 'format': '[%(asctime)s][%(name)s.%(funcName)s():%(lineno)d] ' '[%(levelname)s] %(message)s'}, 'file': {'datefmt': '%Y-%m-%d %H:%M:%S', 'format': '[%(asctime)s][%(name)s.%(funcName)s():%(lineno)d] ' '[%(levelname)s] %(message)s'}, 'standard': {'format': '[%(asctime)s][%(name)s.%(funcName)s():%(lineno)d] ' '[%(levelname)s] %(message)s'}}, 'handlers': {'console': {'class': 'logging.StreamHandler', 'formatter': 'console', 'level': 'INFO'}, 'error': {'backupCount': 3, 'class': 'logging.handlers.RotatingFileHandler', 'encoding': 'utf-8', 'filename': '/www/wwwroot/xiezuo/backend/logs/error.log', 'formatter': 'standard', 'level': 'ERROR', 'maxBytes': 104857600}, 'file': {'backupCount': 5, 'class': 'logging.handlers.RotatingFileHandler', 'encoding': 'utf-8', 'filename': '/www/wwwroot/xiezuo/backend/logs/server.log', 'formatter': 'standard', 'level': 'INFO', 'maxBytes': 104857600}}, 'loggers': {'': {'handlers': ['console', 'error', 'file'], 'level': 'INFO'}, 'django': {'handlers': ['console', 'error', 'file'], 'level': 'INFO', 'propagate': False}, 'django.db.backends': {'handlers': ['console', 'error', 'file'], 'level': 'INFO', 'propagate': False}, 'uvicorn.access': {'handlers': ['console', 'error', 'file'], 'level': 'INFO'}, 'uvicorn.error': {'handlers': ['console', 'error', 'file'], 'level': 'INFO'}}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_NO_CAPTCHA_AUTH | True |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
LOGS_FILE | '/www/wwwroot/xiezuo/backend/logs' |
MANAGERS | [] |
MEDIA_ROOT | 'media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['dvadmin.utils.middleware.HealthCheckMiddleware', 'django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'dvadmin.utils.middleware.ApiLoggingMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PLUGINS_PATH | '/www/wwwroot/xiezuo/backend/plugins' |
PLUGINS_URL_PATTERNS | [] |
PREPEND_WWW | False |
REDIS_DB | 2 |
REDIS_HOST | '127.0.0.1' |
REDIS_PASSWORD | '********************' |
REDIS_URL | 'redis://:1433744303@127.0.0.1:6379' |
REST_FRAMEWORK | {'DATETIME_FORMAT': '%Y-%m-%d %H:%M:%S', 'DATE_FORMAT': '%Y-%m-%d', 'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework_simplejwt.authentication.JWTAuthentication', 'rest_framework.authentication.SessionAuthentication'), 'DEFAULT_FILTER_BACKENDS': ('dvadmin.utils.filters.CustomDjangoFilterBackend', 'rest_framework.filters.SearchFilter', 'rest_framework.filters.OrderingFilter'), 'DEFAULT_PAGINATION_CLASS': 'dvadmin.utils.pagination.CustomPagination', 'DEFAULT_PARSER_CLASSES': ('rest_framework.parsers.JSONParser', 'rest_framework.parsers.MultiPartParser'), 'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.IsAuthenticated'], 'EXCEPTION_HANDLER': 'dvadmin.utils.exception.CustomExceptionHandler'} |
ROOT_URLCONF | 'application.urls' |
SECRET_KEY | '********************' |
SECRET_KEY_FALLBACKS | '********************' |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_CROSS_ORIGIN_OPENER_POLICY | 'same-origin' |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SERVER_LOGS_FILE | '/www/wwwroot/xiezuo/backend/logs/server.log' |
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 | 'application.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SIMPLE_JWT | {'ACCESS_TOKEN_LIFETIME': '********************', 'AUTH_HEADER_TYPES': ('JWT',), 'REFRESH_TOKEN_LIFETIME': '********************', 'ROTATE_REFRESH_TOKENS': '********************'} |
STANDARD_LOG_FORMAT | '[%(asctime)s][%(name)s.%(funcName)s():%(lineno)d] [%(levelname)s] %(message)s' |
STATICFILES_DIRS | ['/www/wwwroot/xiezuo/backend/static'] |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
STATICFILES_STORAGE | 'whitenoise.storage.CompressedStaticFilesStorage' |
STATIC_ROOT | None |
STATIC_URL | '/static/' |
STORAGES | {'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'}, 'staticfiles': {'BACKEND': 'whitenoise.storage.CompressedStaticFilesStorage'}} |
SWAGGER_SETTINGS | {'APIS_SORTER': '********************', 'AUTO_SCHEMA_TYPE': 2, 'DEFAULT_AUTO_SCHEMA_CLASS': 'dvadmin.utils.swagger.CustomSwaggerAutoSchema', 'JSON_EDITOR': True, 'LOGIN_URL': 'apiLogin/', 'LOGOUT_URL': 'rest_framework:logout', 'OPERATIONS_SORTER': 'alpha', 'SECURITY_DEFINITIONS': {'basic': {'type': 'basic'}}, 'VALIDATOR_URL': None} |
SYSTEM_CONFIG | {'base.captcha_state': True, 'base.default_password': '********************', 'base.web_favicon': '', 'base.web_title': '智能写作平台', 'login.clause_url': '', 'login.copyright': '1', 'login.help_url': '', 'login.keep_record': '1', 'login.login_background': None, 'login.privacy_url': '', 'login.site_logo': None, 'login.site_name': '写作管理系统', 'login.site_title': '写作管理'} |
TABLE_PREFIX | 'dvadmin_' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/www/wwwroot/xiezuo/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']}}] |
TENANT_SHARED_APPS | [] |
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' |
USERNAME_FIELD | 'username' |
USE_DEPRECATED_PYTZ | False |
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 | 'application.wsgi.application' |
X_FRAME_OPTIONS | 'DENY' |
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.