heroku/heroku-buildpack-python — Issue #28: Django createsuper user fails on heroku
Author: ptone
Created: 2012-01-29 15:33:09+00:00
State: open

**createsuperuser management command fails with:**

```return getpass.getuser().decode(locale.getdefaultlocale()[1])
TypeError: decode() argument 1 must be string, not None```
**related to:**

https://code.djangoproject.com/ticket/16017

**fixed by:**

http://stackoverflow.com/questions/8981065/on-heroku-locale-getdefaultlocale-is-returning-none-none-breaking-django

heroku config:add LANG=en_US.UTF-8

Perhaps the fix is just to add to the compile script - but the link in the read me to build pack docs is broken - so I'm not sure if this is the best place for the fix?