2012年6月17日日曜日

Django 1.4 の syncdb でユーザ作成に関するエラー

ウン十の手習いで Python + Django をはじめてみました。環境は以下の通りです。

  • Mac OS X 10.7.4
  • Python 2.7.1.
  • Django 1.4
  • PyCharm 2.5.1
Getting Started with PyCharm as a Django Development を見ながら、ウンウン唸ってます… が、syncdb して superuser を作成しようとした際に以下のエラーが表示されてしまいました。
You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Traceback (most recent call last):
  File "/Applications/PyCharm.app/helpers/pycharm/django_manage.py", line 20, in 

    -- snip --

line 85, in get_system_username
    return getpass.getuser().decode(locale.getdefaultlocale()[1])
TypeError: decode() argument 1 must be string, not None

Process finished with exit code 1
これは Django 1.4 に関する既知の問題だそうです。

確かに、上記サイトに書いてある対処でエラーは出なくなりました!

0 件のコメント:

コメントを投稿