nginx django ubuntu 上传文件错误 Unico

2018-06-20  本文已影响9人  谢耳朵_X

https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/uwsgi/

项目的uwsgi.ini配置文件增加配置内容:

Fixing UnicodeEncodeError for file uploads

If you get a UnicodeEncodeError when uploading files with file names that contain non-ASCII characters, make sure uWSGI is configured to accept non-ASCII file names by adding this to your uwsgi.ini:

env=LANG=en_US.UTF-8

See the Files section of the Unicode reference guide for details

上一篇下一篇

猜你喜欢

热点阅读