how to serve static files in django development server

前端 未结 1 717
礼貌的吻别
礼貌的吻别 2021-01-16 04:45

this question has been answered several times and i have seen almost all related posts,but couldn\'t get css files load. i have this structure in my project: mysite

相关标签:
1条回答
  • 2021-01-16 05:05

    you still need to pass STATIC_URL to the template in your view. The easiest way to do this is using RequestContext as long as the 'TEMPLATE_CONTEXT_PROCESSORS' include the static entry.

    0 讨论(0)
提交回复
热议问题