diff --git a/applications/configs/config.py b/applications/configs/config.py index 3545915..f3e2cb7 100644 --- a/applications/configs/config.py +++ b/applications/configs/config.py @@ -42,6 +42,7 @@ class BaseConfig: UPLOADED_PHOTOS_DEST = 'static/upload' UPLOADED_FILES_ALLOW = ['gif', 'jpg'] + UPLOADS_AUTOSERVE = True # JSON配置 JSON_AS_ASCII = False diff --git a/templates/admin/index.html b/templates/admin/index.html index 50fb042..94fff38 100644 --- a/templates/admin/index.html +++ b/templates/admin/index.html @@ -2,7 +2,7 @@
{% include 'admin/common/header.html' %} -