Please copy/symlink the 'missing image' image at xxx

完整报错如下:

ImproperlyConfigured at /zh-cn/catalogue/

Please copy/symlink the 'missing image' image at /home/appleyuchi/Desktop/奥斯卡/RawStone/Labs/The sandbox site/django-oscar/sandbox/public/media/image_not_found.jpg into your MEDIA_ROOT at /home/appleyuchi/Desktop/奥斯卡/RawStone/Labs/The sandbox site/django-oscar/sandbox/public/media. This exception was raised because Oscar was unable to symlink it for you.
Request Method: GET
Request URL: http://127.0.0.1:8000/zh-cn/catalogue/
Django Version: 2.2.10
Exception Type: ImproperlyConfigured
Exception Value:
Please copy/symlink the 'missing image' image at /home/appleyuchi/Desktop/奥斯卡/RawStone/Labs/The sandbox site/django-oscar/sandbox/public/media/image_not_found.jpg into your MEDIA_ROOT at /home/appleyuchi/Desktop/奥斯卡/RawStone/Labs/The sandbox site/django-oscar/sandbox/public/media. This exception was raised because Oscar was unable to symlink it for you.
Exception Location: /home/appleyuchi/Desktop/奥斯卡/RawStone/Labs/The sandbox site/django-oscar/src/oscar/apps/catalogue/abstract_models.py in symlink_missing_image, line 1241
Python Executable: /home/appleyuchi/.virtualenvs/python3.7/bin/python
Python Version: 3.7.5
Python Path:
['/home/appleyuchi/Desktop/奥斯卡/RawStone/Labs/The sandbox '
 'site/django-oscar/sandbox',
 '/home/appleyuchi/.virtualenvs/python3.7/lib/python37.zip',
 '/home/appleyuchi/.virtualenvs/python3.7/lib/python3.7',
 '/home/appleyuchi/.virtualenvs/python3.7/lib/python3.7/lib-dynload',
 '/usr/lib/python3.7',
 '/home/appleyuchi/.virtualenvs/python3.7/lib/python3.7/site-packages',
 '/home/appleyuchi/Desktop/奥斯卡/RawStone/Labs/The sandbox site/django-oscar/src']
Server time: Thu, 27 Feb 2020 13:57:20 +0000

解决方案:

/home/appleyuchi/Desktop/奥斯卡/RawStone/Labs/The sandbox site/django-oscar/sandbox/public/media/

上述的这个路径放入一张正常的图片即可

发布了717 篇原创文章 · 获赞 324 · 访问量 157万+

猜你喜欢

转载自blog.csdn.net/appleyuchi/article/details/104546524
今日推荐