Django - 安装filebrowser发生Error finding Upload-Folder错误

Error finding Upload-Folder (site.storage.location + site.directory). Maybe it does not exist?

 

解决:

FILEBROWSER_DIRECTORY=’D://dev//tools//projects-py//dev//fenway//src//uploads/’
或者:FILEBROWSER_DIRECTORY=os.path.join(BASE_DIR, ‘uploads/’)
或者:(推荐)
MEDIA_ROOT = os.path.join(BASE_DIR, ‘media’)
MEDIA_URL = ‘/media/’
同时要在media下面建立uploads文件夹,FILEBROWSER默认在里面找。

posted @ 2017-03-18 20:25  太古月石  阅读(587)  评论(0编辑  收藏  举报