how to use static folder in django for css and javascript?

后端 未结 3 1811
旧时难觅i
旧时难觅i 2021-01-14 15:46

I am new to django framework .I created simple welcome page now i want to include css file in my project.i cant apply css file in project .i got error like \"NetworkError: 4

3条回答
  •  鱼传尺愫
    2021-01-14 16:32

    I think it is just a spelling mistake. You need to put one S after STATICFILE Thus it should look like:

    STATICFILES_DIRS=(
      os.path.join(os.path.dirname(BASE_DIR),"static","static"),
      )
    

    Hope this will do.

提交回复
热议问题