settings 文件配置:

STATIC_URL = '/static/'

STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static'),
)
PROJECT_ROOT = os.path.dirname(__file__)

STATICFILES_DIRS = (os.path.join(PROJECT_ROOT, 'static'),)