you can define a list of directories (STATICFILES_DIRS
) in your settings file where Django will also look for static files. For example:
STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static"), '/var/www/static/', ]
详情:https://docs.djangoproject.com/en/1.10/howto/static-files/