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
网友评论