Maybe you have an __init__.py inside locale directory?

On 16 ago, 13:12, dcoy <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to deploy my django project to my VPN (CentOS 5 python
> 2.4). I'm having ALL kinds of issues, nothing seems to work after
> following the steps in the installation documentation at
> djangoproject.com. Anyways now I've tracked down an issue that I don't
> really know how to solve:
>
> When running  "# python manage.py" at my django project root I get:
> .....
> File "/usr/lib/python2.4/gettext.py", line 128, in _expand_lang
>     from locale import normalize
> ImportError: cannot import name normalize
>
> So after some investigation I realize that it is my locale directory
> under $PROJECTPATH  that screw things up since it is first in the
> sys.path(s).
>
> My locale is set up according to django i18n doc as
> # $PROJECTPATH/locale/<language>/LC_MESSAGES/django.(po|mo)
> but when gettext.py is trying to import from locale it is looking at
> my project locale, not in the /usr/lib/python2.4/locale.py.
>
> I confirmed this by temporarily renaming my $PROJECTPATH/locale.
>
> Can someone help me out? I don't know the correct course to take here.
>
> Thanks,
> Calle
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to