app/django/bin/make-messages.py
author Lennard de Rijk <ljvderijk@gmail.com>
Thu, 26 Feb 2009 09:02:51 +0000
changeset 1506 b908d671624e
parent 323 ff1a9aa48cfd
permissions -rwxr-xr-x
Solved the JSON caching problem for bulk acceptance. This is done in the same way as it is done in AJAX calls by appending the current time as a GET argument. Patch by: Mario Ferraro, Lennard de Rijk Reviewed by: Lennard de Rijk

#!/usr/bin/env python

if __name__ == "__main__":
    import sys
    name = sys.argv[0]
    args = ' '.join(sys.argv[1:])
    print >> sys.stderr, "%s has been moved into django-admin.py" % name
    print >> sys.stderr, 'Please run "django-admin.py makemessages %s" instead.'% args
    print >> sys.stderr
    sys.exit(1)