Ticket #2372: 3382-fcgi-translation.diff

File 3382-fcgi-translation.diff, 643 bytes (added by bahamut@…, 18 years ago)

Activates translation when running as FCGI.

  • django/core/management.py

     
    11401140
    11411141def runfcgi(args):
    11421142    """Run this project as a FastCGI application. requires flup."""
     1143    from django.conf import settings
     1144    from django.utils import translation
     1145    try:
     1146        translation.activate(settings.LANGUAGE_CODE)
     1147    except AttributeError:
     1148        pass
    11431149    from django.core.servers.fastcgi import runfastcgi
    11441150    runfastcgi(args)
    11451151runfcgi.args = '[various KEY=val options, use `runfcgi help` for help]'
Back to Top