Author: jezdez
Date: 2010-03-15 07:16:21 -0500 (Mon, 15 Mar 2010)
New Revision: 12786

Modified:
   django/trunk/django/conf/project_template/settings.py
   django/trunk/docs/topics/i18n/localization.txt
Log:
Fixed #13045 - Add USE_L10N to the project skeleton settings.

Modified: django/trunk/django/conf/project_template/settings.py
===================================================================
--- django/trunk/django/conf/project_template/settings.py       2010-03-15 
12:16:01 UTC (rev 12785)
+++ django/trunk/django/conf/project_template/settings.py       2010-03-15 
12:16:21 UTC (rev 12786)
@@ -39,6 +39,10 @@
 # to load the internationalization machinery.
 USE_I18N = True
 
+# If you set this to False, Django will not format dates, numbers and
+# calendars according to the current locale
+USE_L10N = True
+
 # Absolute path to the directory that holds media.
 # Example: "/home/media/media.lawrence.com/"
 MEDIA_ROOT = ''

Modified: django/trunk/docs/topics/i18n/localization.txt
===================================================================
--- django/trunk/docs/topics/i18n/localization.txt      2010-03-15 12:16:01 UTC 
(rev 12785)
+++ django/trunk/docs/topics/i18n/localization.txt      2010-03-15 12:16:21 UTC 
(rev 12786)
@@ -249,9 +249,14 @@
 
 .. versionadded:: 1.2
 
-Django's formatting system is disabled by default. To enable it, it's necessary
-to set :setting:`USE_L10N = True <USE_L10N>` in your settings file.
+Django's formatting system is disabled by default. To enable it, it's
+necessary to set :setting:`USE_L10N = True <USE_L10N>` in your settings file.
 
+.. note::
+    The default :file:`settings.py` file created by
+    :djadmin:`django-admin.py startproject <startproject>` includes
+    :setting:`USE_L10N = True <USE_L10N>` for convenience.
+
 When using Django's formatting system, dates and numbers on templates will be
 displayed using the format specified for the current locale. Two users
 accessing the same content, but in different language, will see date and

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to