{{STATIC_URL}}img/memestatlogo2.jpg を読み込もうとすると、次のエラーが表示されます。django が img/memestatlogo2.jpg の STATICFILES_DIRS を検索しないのはなぜですか?
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/static/img/memestatlogo2.jpg
Using the URLconf defined in memestat.urls, Django tried these URL patterns, in this order:
^$
The current URL, static/img/memestatlogo2.jpg, didn't match any of these.
これが私のsettings.pyからの関連構成です
STATIC_ROOT = ''
STATIC_URL = '/static/'
STATICFILES_DIRS = ('/home/ryan/Programming/OpenCV-2.4.2/msheroku/memestat/stats/')
画像は次の場所にあります。
「/home/ryan/Programming/OpenCV-2.4.2/msheroku/memestat/stats/img/memestatlogo2.jpg」