Django — Can't get static CSS files to load

后端 未结 20 1899
借酒劲吻你
借酒劲吻你 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:11

    added

    PROJECT_ROOT = os.path.normpath(os.path.dirname(__file__))
    STATICFILES_DIRS = ( os.path.join(PROJECT_ROOT, "static"), )
    

    and removed STATIC_ROOT from settings.py, It worked for me

提交回复
热议问题