diff options
author | Adrian Holovaty <adrian@holovaty.com> | 2006-08-12 05:55:28 +0000 |
---|---|---|
committer | Adrian Holovaty <adrian@holovaty.com> | 2006-08-12 05:55:28 +0000 |
commit | 20070d9117d8014aefe69539f976951009b59bd9 (patch) | |
tree | c3ff2dfd9b8add9bcf96cdbd14b1b6890fe061ae | |
parent | 9354cfb6ce0232564dfbbccb33ccdfe2cc4dba43 (diff) | |
download | django-20070d9117d8014aefe69539f976951009b59bd9.tar.gz |
Fixed #2372 -- manage.py runfcgi no longer ignore LANGUAGE_CODE. Thanks, ludo@qix.it
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3569 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r-- | django/core/management.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/django/core/management.py b/django/core/management.py index 7cbd018115..a469c72901 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -1142,7 +1142,14 @@ def dbshell(): 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]' |