Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #2372 -- runfcgi no longer ignore LANGUAGE_CODE. Than…


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 9354cfb commit 20070d9117d8014aefe69539f976951009b59bd9 @adrianholovaty adrianholovaty committed
Showing with 8 additions and 1 deletion.
  1. +8 −1 django/core/
9 django/core/
@@ -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
runfcgi.args = '[various KEY=val options, use `runfcgi help` for help]'

0 comments on commit 20070d9

Please sign in to comment.
Something went wrong with that request. Please try again.