Code

Ticket #8702: setlang.diff

File setlang.diff, 550 bytes (added by kmtracey, 6 years ago)

Patch, in case it's of use to anyone

Line 
1Index: django/core/management/commands/runserver.py
2===================================================================
3--- django/core/management/commands/runserver.py        (revision 8744)
4+++ django/core/management/commands/runserver.py        (working copy)
5@@ -74,4 +74,7 @@
6             from django.utils import autoreload
7             autoreload.main(inner_run)
8         else:
9+            from django.conf import settings
10+            from django.utils import translation
11+            translation.activate(settings.LANGUAGE_CODE)
12             inner_run()