添加上传图片

This commit is contained in:
2025-06-15 21:52:26 +08:00
parent 5aaf86b3ee
commit f30dfac02b
7 changed files with 52 additions and 15 deletions

View File

@@ -183,3 +183,7 @@ CORS_ALLOW_CREDENTIALS = True
NINJA_PAGINATION_CLASS = "ninja.pagination.PageNumberPagination"
NINJA_PAGINATION_PER_PAGE = 10
# Media files
MEDIA_URL = "/media/"
MEDIA_ROOT = BASE_DIR.parent / "media"