Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 271093d3b31cbee9e8042a43675e76507d4501e0 1 parent 0016547
@malcolmt malcolmt authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 django/bin/make-messages.py
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.