django-s3-folder-storageを使用してS3をDjangoプロジェクトに統合していpython manage.py collectstatic
ます。静的ファイルをバケットにアップロードするために実行しても問題ありませんが、管理サイトのバケットに画像をアップロードしようとすると、エラーPermission denied
:
OSError at /admin/picture/picture/1/
[Errno 13] Permission denied: '/media/draw_share_picture'
Request Method: POST
Request URL: http://127.0.0.1:8000/admin/picture/picture/1/
Django Version: 1.3.1
Exception Type: OSError
Exception Value:
[Errno 13] Permission denied: '/media/draw_share_picture'
Exception Location: /home/ragnarok/Projects/drawshare/venv/lib/python2.7/os.py in makedirs, line 157
Python Executable: /home/ragnarok/Projects/drawshare/venv/bin/python
Python Version: 2.7.3
Python Path:
['/home/ragnarok/Projects/drawshare/drawShare',
'/usr/lib/python2.7/site-packages/liquidluck-0.3-py2.7.egg',
'/usr/lib/python2.7/site-packages/houdini.py-0.1.0-py2.7-linux-i686.egg',
'/usr/lib/python2.7/site-packages/misaka-1.0.2-py2.7-linux-i686.egg',
'/usr/lib/python2.7/site-packages/docutils-0.9.1-py2.7.egg',
'/home/ragnarok/Projects/drawshare/venv/lib/python2.7/site-packages/distribute-0.6.27-py2.7.egg',
'/home/ragnarok/Projects/drawshare/venv/lib/python2.7/site-packages/pip-1.1-py2.7.egg',
'/home/ragnarok/Projects',
'/usr/lib/python2.7/site-packages',
'/home/ragnarok/Projects/drawshare/drawShare',
'/usr/lib/python2.7/site-packages/PIL',
'/usr/lib/python2.7/site-packages/gtk-2.0',
'/usr/lib/python2.7/site-packages/setuptools-0.6c11.egg-info',
'/home/ragnarok/Projects/drawshare/venv/lib/python27.zip',
'/home/ragnarok/Projects/drawshare/venv/lib/python2.7',
'/home/ragnarok/Projects/drawshare/venv/lib/python2.7/plat-linux2',
'/home/ragnarok/Projects/drawshare/venv/lib/python2.7/lib-tk',
'/home/ragnarok/Projects/drawshare/venv/lib/python2.7/lib-old',
'/home/ragnarok/Projects/drawshare/venv/lib/python2.7/lib-dynload',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/home/ragnarok/Projects/drawshare/venv/lib/python2.7/site-packages']
なんで?