社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
私信  •  关注

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>路径是这样的,可是还是无法显示。