/jquery-...
์ ์ฒซ ๋ฒ์งธ ์ฌ๋์๋ ์ด๋์์ ์์ต๋๊น? ์ฌ๋ฐ๋ฅด์ง ์์ ๋ณด์ด๋ฉฐ ์ด ๋ฌธ์ ์ ์์ธ์ผ ๊ฐ๋ฅ์ฑ์ด ํฝ๋๋ค.
๋น์ทํ ์ค๋ฅ์ด์ง๋ง The joined path (/images/placeholder255x255.png) is located outside of the base path component (/home/USER/lib/python3.6/versatileimagefield/static)
@RoelantStegmann ๊ณผ ๋์ผํ ์ค๋ฅ์ด์ง๋ง django ์ค๋ฅ๊ฐ ํฌํจ๋์ด ์์ต๋๋ค(๋๊ตฐ๊ฐ๋ฅผ ์ ๋ฐํ๋ ๊ฒฝ์ฐ...):
ERROR django.security.SuspiciousFileOperation ๊ฒฐํฉ๋ ๊ฒฝ๋ก(/images/placeholder255x255.png)๊ฐ ๊ธฐ๋ณธ ๊ฒฝ๋ก ๊ตฌ์ฑ์์(/usr/local/lib/python3.5/dist-packages/versatileimagefield/static) ์ธ๋ถ์ ์์ต๋๋ค . [
๋ํ ๋ช ๊ฐ์ง ํ๋ก์ ํธ์์ ๋ค์ฉ๋ ์ด๋ฏธ์ง ํ๋์ ์๋ฆฌ ํ์์๋ฅผ ์ฌ์ฉํ๊ณ ์๋๋ฐ ์ด ์ค๋ฅ๋ฅผ ํ ๋ฒ๋ ๋ณธ ์ ์ด ์์ต๋๋ค.
๋๊ตฐ๊ฐ ์์ ์ ๋ค์ฌ๋ค๋ฅํ ์ด๋ฏธ์ง ํ๋ ๊ตฌ์ฑ ๋ฐ ํ๋ ์ธ์คํด์คํ๋ฅผ ๊ฒ์ํ ์ ์์ต๋๊น?
Saleor์์ ์ฝ๋๋ฅผ ๋ณต์ฌํ๊ธฐ๋ง ํ๋ฉด ๋ฉ๋๋ค.
VERSATILEIMAGEFIELD_RENDITION_KEY_SETS = {
'products': [
('product_gallery', 'crop__540x540'),
('product_gallery_2x', 'crop__1080x1080'),
('product_small', 'crop__60x60'),
('product_small_2x', 'crop__120x120'),
('product_list', 'crop__255x255'),
('product_list_2x', 'crop__510x510')]}
VERSATILEIMAGEFIELD_SETTINGS = {
# Images should be pre-generated on Production environment
'create_images_on_demand': get_bool_from_env(
'CREATE_IMAGES_ON_DEMAND', DEBUG),
}
PLACEHOLDER_IMAGES = {
60: 'images/placeholder60x60.png',
120: 'images/placeholder120x120.png',
255: 'images/placeholder255x255.png',
540: 'images/placeholder540x540.png',
1080: 'images/placeholder1080x1080.png'}
DEFAULT_PLACEHOLDER = 'images/placeholder255x255.png'
๊ทธ๋ฆฌ๊ณ ์ฌ์ฉ ๋ ์ ์ ๋๋ค.
์ฃ์กํฉ๋๋ค. ๋ฌด์์ ์ฐพ์์ผ ํ ์ง ์ ๋ชจ๋ฅด๊ฒ ์ต๋๋ค. :-/
@resgef ๋ฌธ์ ์ ๋ํ ํด๊ฒฐ์ฑ ์
๋๋ฅผ ์ํ https://github.com/mirumee/saleor/pull/2534
์ข์, ๊ทธ๊ฒ ๋ฐ๋ก ๋ด๊ฐ ์๊ฐํ ๊ฒ์ ๋๋ค. ๋๋ ๊ทธ๊ฒ์ด ์ด์ ์ ํ๋งค์์ ์ํด ์ผํ๋ค๋ ๊ฒ์ ์ฝ๊ฐ ๋๋์ต๋๋ค.
@matthiask ๊ทธ๋ฌ๋ค ๋ ๋ณด์ฅ์ ์์ต๋๋ค. :)
์๋
ํ์ธ์ ์ด ๋ฌธ์ ๋ฅผ ์ด๋ป๊ฒ ๊ณ ์น ์ ์์ต๋๊น?
SuspiciousFileOperation at / ๊ฒฐํฉ๋ ๊ฒฝ๋ก(/jquery-1.11.1.min.js , js)
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
@matthiask ๊ทธ๋ฌ๋ค ๋ ๋ณด์ฅ์ ์์ต๋๋ค. :)