From 271093d3b31cbee9e8042a43675e76507d4501e0 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Wed, 19 Jul 2006 12:09:53 +0000 Subject: [PATCH] Fixed #2323 -- Made it possible to run make-messages without needing a DJANGO_SETTINGS_FILE setting. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3374 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/bin/make-messages.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/django/bin/make-messages.py b/django/bin/make-messages.py index 75b0bc0ca0..557cb5eeec 100755 --- a/django/bin/make-messages.py +++ b/django/bin/make-messages.py @@ -1,5 +1,9 @@ #!/usr/bin/env python +# Need to ensure that the i18n framework is enabled +from django.conf import settings +settings.configure(USE_I18N = True) + from django.utils.translation import templatize import re import os