setting 文件配置
STATICFILES_DIRS = [ os.path.join(base_DIR, "static"), ] # STATIC_ROOT = os.path.join(base_DIR, 'static') STATIC_URL = '/static/
注意STATICFILES_DIRS和STATIC_ROOT不能重复
urls 文件
urlpatterns = []+ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)