Django staticfiles app help

后端 未结 5 1387
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-28 18:36

I\'ve having a little issue with Django\'s staticfiles app.

I have added

\'django.contrib.staticfiles\',

to my INSTALLED_APPS and

5条回答
  •  隐瞒了意图╮
    2020-11-28 19:09

    I found a quick and easy workaround to serve project global static files during development:

    • Start a new app that contains your projects static files (e.g. "manage.py startapp static_content")
    • Create a folder named 'static' in that app and put your static files there.
    • Add your new app to the list of installed apps

提交回复
热议问题