On 9/13/12 10:37 AM, Bob Aalsma wrote:
Hmm, I'd seen this solution in
http://keeyai.com/2012/02/17/django-deployment-create-superuser-fails-with-locale-error/
but was reluctant to use this as " I have no idea if this causes any
negative side effects."
A running system is not usually considered a negative side effect ;)
Everything will fail without this mod afaik.
So that is the official repair?
Mac OS does not set the default language environment in a way that
python (at least) recognizes. This is true for python installations done
from MacPorts so I think it is independent of the installation
technique. You will need to do this (slight) mod to manage.py to have
things work.
Since you are on Mac OS X, I *strongly* recommend using virtualenv to do
your basic installation of packages. Once you get a mix of python libs
which may install under the original python installation, or may install
under the MacPorts installation area, or may install somewhere else, you
will slowly go nuts trying to keep it straight.
virtualenv gets you a consistent development and runtime environment and
is very repeatable.
I'm not remembering when in the process you will find failures if you
are missing that mod to manage.py; I have not tracked down your links to
other places. Do you want to post the exact error you are seeing?
hth
- Tom
OK.
Thanks!
Op donderdag 13 september 2012 16:58:11 UTC+2 schreef Bob Aalsma het
volgende:
I'm a newbie following the tutorial. In this, creating a superuser
is described, using
manage.py createsuperuser --username=joe --email=j...@example.com
<mailto:j...@example.com>
Using this leads to an error, which I could match to the closed
ticket #16017.
But I couldn't find how to proceed from there. It seems some
software was changed about 4 weeks ago:
"Made createsuperuser more robust when getting current OS username."
So where can I find it?
[I'm assuming there is a procedure for this, but I'm sorry to say
I couldn't find that either]
Regards,
Bob
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/LbEFlfhWbVoJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.