Author: adrian
Date: 2006-08-12 00:55:28 -0500 (Sat, 12 Aug 2006)
New Revision: 3569
Modified:
django/trunk/django/core/management.py
Log:
Fixed #2372 -- manage.py runfcgi no longer ignore LANGUAGE_CODE. Thanks, [EMAIL
PROTECTED]
Modified: django/trunk/django/core/management.py
===================================================================
--- django/trunk/django/core/management.py 2006-08-12 05:42:48 UTC (rev
3568)
+++ django/trunk/django/core/management.py 2006-08-12 05:55:28 UTC (rev
3569)
@@ -1142,7 +1142,14 @@
dbshell.args = ""
def runfcgi(args):
- """Run this project as a FastCGI application. requires flup."""
+ "Runs this project as a FastCGI application. Requires flup."
+ from django.conf import settings
+ from django.utils import translation
+ # Activate the current language, because it won't get activated later.
+ try:
+ translation.activate(settings.LANGUAGE_CODE)
+ except AttributeError:
+ pass
from django.core.servers.fastcgi import runfastcgi
runfastcgi(args)
runfcgi.args = '[various KEY=val options, use `runfcgi help` for help]'
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---