Code

Ticket #2372: management.py.diff

File management.py.diff, 742 bytes (added by ludo@…, 8 years ago)

quick fix

Line 
1Index: /usr/lib/python2.4/site-packages/django/core/management.py
2===================================================================
3--- /usr/lib/python2.4/site-packages/django/core/management.py  (revision 3358)
4+++ /usr/lib/python2.4/site-packages/django/core/management.py  (working copy)
5@@ -1134,6 +1134,12 @@
6 
7 def runfcgi(args):
8     """Run this project as a FastCGI application. requires flup."""
9+    from django.conf import settings
10+    from django.utils import translation
11+    try:
12+        translation.activate(settings.LANGUAGE_CODE)
13+    except AttributeError:
14+        pass
15     from django.core.servers.fastcgi import runfastcgi
16     runfastcgi(args)
17 runfcgi.args = '[various KEY=val options, use `runfcgi help` for help]'