Django中Static

Jason_huawen / 2023-05-25 / 原文

需要在settings.py文件中设定:

STATICFILES_DIRS = [
    os.path.join(BASE_DIR, "static"),
]