안녕하세요 ? 고수님들 도움을 요청합니다 관리자 page에서 회원에 사진을 추가 할수 있

 
정재윤

안녕하세요 ?

고수님들 도움을 요청합니다
관리자 page에서 회원에 사진을 추가 할수 있도록 하였는데
(models.py 에 image = models.ImageField(verbose_name=u”사진”,upload_to=”uploads/images”,default = “uploads/images/noImage.jpg”))

영문이름으로 된 image file를 올리면 문제가 없는데 한글로 된 image file 를 올리면 문제가 되네요…

UnicodeEncodeError at /admin/app/member/48/
‘ascii’ codec can’t encode characters in position 49-50: ordinal not in range(128)
Request Method: POST
Request URL: http://www.xxx.xxx/admin/app/member/48/
Django Version: 1.8.1
Exception Type: UnicodeEncodeError
Exception Value:
‘ascii’ codec can’t encode characters in position 49-50: ordinal not in range(128)
Exception Location: /usr/lib64/python2.7/genericpath.py in exists, line 19
Python Executable: /usr/bin/python
Python Version: 2.7.9
Python Path:
[‘/usr/local/lib/python2.7/site-packages/distribute-0.7.3-py2.7.egg’,
‘/usr/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg’,
‘/var/www/html/django/ewhaya’,
‘/usr/local/lib/python2.7/site-packages’,
‘/usr/lib64/python27.zip’,
‘/usr/lib64/python2.7’,
‘/usr/lib64/python2.7/plat-linux2’,
‘/usr/lib64/python2.7/lib-tk’,
‘/usr/lib64/python2.7/lib-old’,
‘/usr/lib64/python2.7/lib-dynload’,
‘/usr/lib64/python2.7/site-packages’,
‘/usr/lib/python2.7/site-packages’]
Server time: 월요일, 11 5월 2015 11:03:43 +0900

감사합니다

Advertisements