Django cannot find static files. Need a second pair of eyes, I'm going crazy

前端 未结 3 925
无人及你
无人及你 2020-11-28 10:39

Django will not serve my static files. Here\'s the error returned:

[13/Jun/2014 06:12:09] \"GET /refund/ HTTP/1.1\" 200 2927
[13/Jun/2014 0         


        
3条回答
  •  半阙折子戏
    2020-11-28 11:21

    Change STATIC_ROOT of settings.py, I hope it will work. I face the same problem....

    STATIC_URL = '/static/'
    STATICFILES_DIRS = [
        os.path.join(BASE_DIR, 'static')
    ]
    
    MEDIA_URL = '/media/'
    MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
    

提交回复
热议问题