Django: cannot update css changes

后端 未结 4 426
眼角桃花
眼角桃花 2020-12-07 06:29

After running my server, my page doesn\'t show the updates that I\'ve made in the CSS file.

My navbar won\'t recognize a css rule: .navbar-bg {background-colo

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-07 07:02

    You can test this method. I hope would be benefit for you

    STATICFILES_DIRS = (
        os.path.join(BASE_DIR, 'static', 'static_dirs'),
        )
    

    Then add you can static files in static/static_dirs folders.

提交回复
热议问题