4
試圖做一個heroku python manage.py createsuperuser
給我說結束大約一個錯誤:在Heroku上,locale.getdefaultlocale()返回(無,無),打破Django createsuperuser - 如何解決?
File "/usr/local/www/site-python/lib/django-trunk/django/contrib/auth/management/__init__.py", line 85, in get_system_username
return getpass.getuser().decode(locale.getdefaultlocale()[1])
TypeError: decode() argument 1 must be string, not None
輸入確認了殼:將返回locale.getdefaultlocale()(無,無)在我的Heroku雪松堆棧。如何設置區域設置,使Python獲取它?