How do I serve CSS to Django in development?

后端 未结 4 1419
心在旅途
心在旅途 2021-02-02 03:37

I\'ve been all through the documentation, and it just doesn\'t make sense to me. I ran collectstatic, I set up /static/ directories in both my app and my project directories, I

4条回答
  •  说谎
    说谎 (楼主)
    2021-02-02 04:23

    Have a look at Serving static files in development. You need to define the STATIC_URL and STATICFILES_DIRS to let django.contrib.staticfiles know where to look for files.

提交回复
热议问题