[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Maposmatic-dev] [PATCH 1/3] Explain the workaround for Django makem
From: |
Thomas Petazzoni |
Subject: |
Re: [Maposmatic-dev] [PATCH 1/3] Explain the workaround for Django makemessages bug |
Date: |
Mon, 2 Apr 2012 23:19:16 +0200 |
Le Mon, 2 Apr 2012 23:03:50 +0200,
Jeroen van Rijn <address@hidden> a écrit :
> I'm wondering if we might not be able to use a convenience wrapper around
> django-admin.py? It's a pretty short script as it is.
>
> #!/usr/bin/env python
> from django.core import management
>
> if __name__ == "__main__":
> management.execute_from_command_line()
>
> if management.get_version == '1.2':
> import sys
> if 'makemessages' in sys.argv:
> ...... walk tree using find / sed, or the python equivalent
>
> That is if we know which django versions exhibit this behaviour, a small
> script like this derived from django-admin.py could do away with this
> warning in README. Given that people in general don't tend to Read The Fine
> Manual, it might be something worth considering?
There's no need to use django-admin.py anymore, the manage.py script
does the work already. Of course, if there's a way of making this
work-around permanent, that would be nice.
The problem has apparently been fixed in recent versions of Django:
https://code.djangoproject.com/ticket/16721.
A different work-around might be:
http://stackoverflow.com/a/5646276/643208.
Regards,
Thomas
--
Thomas Petazzoni http://thomas.enix.org
MapOSMatic http://www.maposmatic.org
Logiciels Libres à Toulouse http://www.toulibre.org
Embedded Linux http://www.free-electrons.com