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

debug为true ,不用设置static_root

debug 为false ,设置static_root

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

 

posted @ 2018-05-24 13:46  anobscureretreat  阅读(315)  评论(0编辑  收藏  举报