修复管理员界面显示问题和设置

This commit is contained in:
2025-10-27 05:06:08 +08:00
parent 8f9bca5dfa
commit a4c1a92cc8
2 changed files with 7 additions and 0 deletions

3
.gitignore vendored
View File

@@ -176,3 +176,6 @@ cython_debug/
media/
staticfiles/
__pycache__/
*.pyc

View File

@@ -117,6 +117,10 @@ USE_TZ = True
# https://docs.djangoproject.com/en/5.2/howto/static-files/
STATIC_URL = 'static/'
STATICFILES_DIRS = [
BASE_DIR / "crawler" / "static",
]
STATIC_ROOT = BASE_DIR / "staticfiles"
# Media files (用户上传的文件)
MEDIA_URL = '/media/'