Django本地开发,debug模式引用静态文件

debug为true ,不用设置static_root

debug 为false ,设置static_root

STATIC_ROOT = (  
    os.path.join(BASE_DIR, 'static')  
  
) 

原文地址:https://www.cnblogs.com/sea-stream/p/9082476.html