#13234: cannot import name trans_real
------------------------------------------------+---------------------------
Reporter: roklenardic | Owner: nobody
Status: new | Milestone:
Component: django-admin.py runserver | Version: SVN
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------------------+---------------------------
Comment (by anonymous):
Alex is a genius! That did it.
{{{
Index: django/utils/translation/__init__.py
===================================================================
--- django/utils/translation/__init__.py (revision 12873)
+++ django/utils/translation/__init__.py (working copy)
@@ -4,7 +4,6 @@
from django.conf import settings
from django.utils.encoding import force_unicode
from django.utils.functional import lazy, curry
-from django.utils.translation import trans_real, trans_null
__all__ = ['gettext', 'gettext_noop', 'gettext_lazy', 'ngettext',
@@ -28,6 +27,7 @@
that modules can use the translation bits without actually requiring
Django's settings bits to be configured before import.
"""
+ from django.utils.translation import trans_real, trans_null
if settings.USE_I18N:
trans = trans_real
else:
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/13234#comment:8>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.