﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
2323	make-messages.py not working outside of django apps	Ahmad Alhashemi	Adrian Holovaty	"It seems that the translation module now requires 'settings'. This makes it impossible to run make-messages.py outside of an application. This is waht I got when I ran 'make-messages -u' in django's root directory:

{{{
Traceback (most recent call last):
  File ""C:\Python24\Lib\site-packages\django\bin\make-messages.py"", line 3, in ?
    from django.utils.translation.trans_real import templatize
  File ""C:\Python24\lib\site-packages\django\utils\translation\__init__.py"", line 3, in ?
    if settings.USE_I18N:
  File ""C:\Python24\lib\site-packages\django\conf\__init__.py"", line 28, in __getattr__
    self._import_settings()
  File ""C:\Python24\lib\site-packages\django\conf\__init__.py"", line 53, in _import_settings
    raise EnvironmentError, ""Environment variable %s is undefined."" % ENVIRONMENT_VARIABLE
EnvironmentError: Environment variable DJANGO_SETTINGS_MODULE is undefined.
}}}

I tried changing the import line from this:
from django.utils.translation import templatize

To this:
from django.utils.translation.trans_real import templatize

But it still has to run __init__.py.

I took the liberty to assign it to adrian becasue he is the one who broke it :)"	defect	closed	Internationalization		normal	fixed			Unreviewed	0	0	0	0	0	0
