私信  •  关注

gc

gc 最近回复了

MEDIA_URL = "/static/media/"

我用firebug检查图片的路径,显示‘载入图片URL失败’

Page not found (404) Request Method: GET Request URL:

'media\uploads\qq图片20140310162703.jpg' could not be found

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

<a target="_blank" href="/static/media/uploads/gallery/Venice%2C%20Italy.jpg">Venice, Italy.jpg</a>路径是这样的,可是还是无法显示。