Django base.html extended to homepage.html, static images appear, but home.css does not works

前端 未结 2 1895
无人共我
无人共我 2021-01-07 15:39

Problem: As the title says I am building a django project the base.html extended to homepage.html and works fine, static images appear, but home.css does no

2条回答
  •  礼貌的吻别
    2021-01-07 16:10

    The server should respond with the correct MIME Type for JSONP application/javascript and your request should tell jQuery you are loading JSONP dataType: 'jsonp'

    Please see this answer for further details ! You can also have a look a this one as it explains why loading .js file with text/plain won't work. Disable Chrome strict MIME type checking

提交回复
热议问题