Django — Can't get static CSS files to load

后端 未结 20 1888
借酒劲吻你
借酒劲吻你 2020-11-29 23:45

I\'m running Django\'s development server (runserver) on my local machine (Mac OS X) and cannot get the CSS files to load.

Here are the relevant entries

20条回答
  •  生来不讨喜
    2020-11-30 00:06

    See if your main application (where the static directory is located) is included in your INSTALLED_APPS.

    Files are searched by using the enabled finders. The default is to look in all locations defined in STATICFILES_DIRS and in the 'static' directory of apps specified by the INSTALLED_APPS setting.

提交回复
热议问题