当我通过管理员上传图片时,没有生成缩略图(我使用的是Django)。 我认为这是一个问题,要么皮尔或枕头,但我不知道确切是什么(我想我正在使用两个,不确定,因为我正在使用另一个应用程序)。在
如何正确卸载和重新安装(或配置)PIL和/或Pill,以便生成缩略图?(我正在使用虚拟机)
编辑:这是我从Django收到的错误(回溯)。在
Traceback (most recent call last):
File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File "/home/family/.virtualenvs/virenv/local/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 68, in __call__
return super(StaticFilesHandler, self).__call__(environ, start_response)
File "/home/family/.virtualenvs/virenv/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 206, in __call__
response = self.get_response(request)
File "/home/family/.virtualenvs/virenv/local/lib/python2.7/site-packages/mezzanine/core/management/commands/runserver.py", line 15, in get_response
return serve(request, path, document_root=settings.STATIC_ROOT)
File "/home/family/.virtualenvs/virenv/local/lib/python2.7/site-packages/django/views/static.py", line 55, in serve
raise Http404(_('"%(path)s" does not exist') % {'path': fullpath})
Http404: "media/product/.thumbnails/img_name" does not exist
从我的观点来看,有人写的代码
而不是
^{pr2}$你能试着找出这样的错误吗?关注
'img_name'
相关问题 更多 >
编程相关推荐