Area is the name of a continent, an ocean, or "Etc". The continents and oceans currently include: Africa, America, Antarctica, Arctic, Asia, Atlantic, Australia, Europe, Indian, and Pacific.
The special area of "Etc" is used for some administrative zones, particularly for "Etc/UTC" which represents Coordinated Universal Time. In order to conform with the POSIX style, those zone names beginning with "Etc/GMT" have their sign reversed from what most people expect. In this style, zones west of GMT have a positive sign and those east have a negative sign in their name (e.g "Etc/GMT-14" is 14 hours ahead/east of GMT.)
std and dst are 3 or more characters specifying the standard and daylight saving time (DST) zone names. Starting with POSIX.1-2001, std and dst may also be in a quoted form like <UTC+10>; this allows "+" and "-" in the names.
offset is of the form '[+-]hh:[mm[:ss]]' and specifies the offset west of UT. 'hh' may be a single digit; 0<=hh<=24. The default DST offset is one hour ahead of standard time.
Traceback:File"/var/www/.venv/local/lib/python2.7/site-packages/django/db/models/base.py"insave546.force_update=force_update,update_fields=update_fields)File"/var/www/.venv/local/lib/python2.7/site-packages/django/db/models/base.py"insave_base624.values=[(f,None,(rawandgetattr(self,f.attname)orf.pre_save(self,False)))forfinnon_pks]File"/var/www/.venv/local/lib/python2.7/site-packages/django/db/models/fields/files.py"inpre_save250.file.save(file.name,file,save=False)File"/var/www/.venv/local/lib/python2.7/site-packages/django/db/models/fields/files.py"insave86.self.name=self.storage.save(name,content)File"/var/www/.venv/local/lib/python2.7/site-packages/django/core/files/storage.py"insave47.name=self.get_available_name(name)File"/var/www/.venv/local/lib/python2.7/site-packages/django/core/files/storage.py"inget_available_name73.whileself.exists(name):File"/var/www/.venv/local/lib/python2.7/site-packages/django/core/files/storage.py"inexists243.returnos.path.exists(self.path(name))File"./.venv/lib/python2.7/genericpath.py"inexists18.os.stat(path)ExceptionType:UnicodeEncodeErrorat/zh/proposal/upload_abstract/1/ExceptionValue:'ascii'codeccan't encode characters in position 63-67: ordinal not in range(128)
主要原因似乎是 python 引用底層 os library 時,系統看不懂你使用的編碼(可是 python 懂 XD)。這時候你只要去系統安裝你需要的語言包。重新啟動 server 後問題就解決了。例如: