[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
> 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 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 anymore, the 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:

A different work-around might be:


Thomas Petazzoni      
Logiciels Libres à Toulouse
Embedded Linux        

reply via email to

[Prev in Thread] Current Thread [Next in Thread]