Skip to content Skip to sidebar Skip to footer

Django Createsuperuser Not Working

.bash_profile export PATH='/Applications/MAMP/bin:/usr/local/bin:/usr/local/sbin:usr/local/$ export DYLD_LIBRARY_PATH='/usr/local/mysql/lib:$DYLD_LIBRARY_PATH' export LANG='en_US.

Solution 1:

You are seeing this because you don't have locale set on your system. You need to set it in order to create superuser, it's known and reported "bug" already.

see: https://code.djangoproject.com/ticket/17649

Assuming that you're using linux you can fix that bug with

export LANG="en_US.UTF-8"

You use this in terminal, but you can easily check and see how to change locales on your system just googling.

If you're using:

Ubuntu - https://help.ubuntu.com/community/Locale/

Archlinux - https://wiki.archlinux.org/index.php/Locale

...


Solution 2:

The accepted answer didn't work for me, so I keep searching around and found this. It works for me. For sake of time saving I copy paste the two lines here. Enter this in terminal:

$ LC_CTYPE=en_US.UTF-8
$ LC_ALL=en_US.UTF-8

Note: I use Mac OS 10.7 if that's relevant. Setting locale in system preference didn't work for me either.


Post a Comment for "Django Createsuperuser Not Working"