1

当我在 settings.py 中写入时USE_I18N = True,会出现调试错误:

Connected to pydev debugger (build 129.782)
error: unpack requires a string argument of length 8

当我写的时候USE_I18N = False,一切正常。

可能是什么问题?

4

1 回答 1

0

Had the same issue. Re-making and compiling messages files worked.

The situation occurred to me after undoing the removal of a django application folder in PyCharm (4.x). So re-doing those messages solved the issue.

于 2015-01-17T15:08:35.620 回答