(env) PS D:\编程学习\项目\mysite> py manage.py makemigrations
System check identified some issues:
WARNINGS:
?: (staticfiles.W004) The directory '/var/www/static/' in the STATICFILES_DIRS setting does not exist.
No changes detected
(env) PS D:\编程学习\项目\mysite> py manage.py makemigrations
System check identified some issues:
WARNINGS:
?: (staticfiles.W004) The directory '/var/www/static/' in the STATICFILES_DIRS setting does not exist.
No changes detected
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, "static")
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static').replace('\', '/'),
('css', os.path.join(STATIC_ROOT, 'css').replace('\', '/')),
('js', os.path.join(STATIC_ROOT, 'js').replace('\', '/')),
('images', os.path.join(STATIC_ROOT, 'images').replace('\', '/')),
('upload', os.path.join(STATIC_ROOT, 'upload').replace('\', '/')),)