getdefaultlocale returning None when running sync.db on Django project in PyCharm

后端 未结 2 364
心在旅途
心在旅途 2021-02-03 14:32

OSX 10.7.3, PyCharm version 2.5 build PY 117.200

I\'ll run through how I get the error:

  1. I start a new project
  2. Create a new VirtualEnv and select P
2条回答
  •  南方客
    南方客 (楼主)
    2021-02-03 15:12

    Go onto Terminal:

    $ nano .bash_profile
    

    add:

    export LC_ALL=en_GB.UTF-8
    export LANG=en_GB.UTF-8
    

    (or use the locale -a command to see which ones are available to you)

    save and try again.

提交回复
热议问题