STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static/"),
]
我这样配置了static文件,html里{% load static %}
后面的{% static 'css/style.css' %}
都没有问题,可就是css样式加载不出来,terminal给我报了一个错误:
"The STATICFILES_DIRS setting should "
ImproperlyConfigured: The STATICFILES_DIRS setting should not contain the STATIC_ROOT setting
[21/May/2017 11:18:43] "GET /static/images/logo.png HTTP/1.1" 500 59
[21/May/2017 11:18:43] "GET /static/css/station_list.css HTTP/1.1" 500 59
怎么才能让css显示出来,dirs该怎么配才对,Django版本:1.11