If you're using bash, you should set it up on ~/.bashrc file, that way it
will always load, for every virtualenv and every terminal session.
BTW ~/ stands for the home directory and instead of LC_ALL try something
like this:
export LANG="en_US.UTF-8"
That would give less trouble with other
Google to the rescue:
http://stackoverflow.com/questions/10882839/django-unsupported-locale-setting-on-mac-os-x
After setting LC_ALL in venv/bin/activate and re-sourcing solved my
problem. Not sure if this should be handled automatically by either Django
or virtualenv setup, but maybe a note
Check the docs, there is a manage.py command to create superusers once
the DB is sync'd:
https://docs.djangoproject.com/en/1.4/ref/django-admin/#createsuperuser
Regards,
Carlos Ruvalcaba
On Mon, Jan 7, 2013 at 7:50 PM, Skip Montanaro wrote:
> get_system_username
>>
>>
get_system_username
> return getpass.getuser().decode(locale.getdefaultlocale()[1])
> TypeError: decode() argument 1 must be string, not None
>
>
> I'm on a Mac, which has minimally broken locale support. I went back to
> settings.py and set USE_L10N to False. After that, the syncdb
I'm working my way through the tutorial (using sqlite3 for database). I
got tripped up the first time I tried syncing the database:
% python manage.py syncdb
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table
5 matches
Mail list logo