由于media_root权限错误,无法继续进行注册

时间:2019-04-17 03:33:42

标签: django

我正在尝试在django网站上注册一个帐户,但遇到以下错误:

Thumbnail generation failed
Traceback (most recent call last):
  File "C:\Users\jason\AppData\Local\Programs\Python\Python36\lib\site-packages\versatileimagefield\image_warmer.py", line 117, in _prewarm_versatileimagefield
    url = get_url_from_image_key(versatileimagefieldfile, size_key)
  File "C:\Users\jason\AppData\Local\Programs\Python\Python36\lib\site-packages\versatileimagefield\utils.py", line 216, in get_url_from_image_key
    img_url = img_url[size_key].url
  File "C:\Users\jason\AppData\Local\Programs\Python\Python36\lib\site-packages\versatileimagefield\datastructures\sizedimage.py", line 149, in __getitem__
    height=height
  File "C:\Users\jason\AppData\Local\Programs\Python\Python36\lib\site-packages\versatileimagefield\datastructures\sizedimage.py", line 201, in create_resized_image
    path_to_image
  File "C:\Users\jason\AppData\Local\Programs\Python\Python36\lib\site-packages\versatileimagefield\datastructures\base.py", line 140, in retrieve_image
    image = self.storage.open(path_to_image, 'rb')
  File "C:\Users\jason\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\files\storage.py", line 33, in open
    return self._open(name, mode)
  File "C:\Users\jason\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\files\storage.py", line 218, in _open
    return File(open(self.path(name), mode))
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\jason\\Desktop\\staticfiles\\media_root'

我只是在保留个人文件的同时重新安装了Windows 10。重新安装Windows 10之前从未发生过此错误。我已经查看了文件夹权限,看不到任何错误。对我可以检查的内容有何想法?

谢谢!

0 个答案:

没有答案