Deseo usar la agrupación de millares en mis formatos numéricos, for which I use the "floatformat" filter.
My configuration in "settings.py" is:
USE_L10N = False
USE_THOUSAND_SEPARATOR = True
NUMBER_GROUPING = 3
Showing my numbers without the grouping of thousands.
It is understood that if I have enabled the thousands separator
USE_THOUSAND_SEPARATOR = True and NUMBER_GROUPING > 0 to display all
numbers with the pattern:
#THOUSAND_SEPARATOR###DECIMAL_SEPARATOR##
If is enabled or not USE_L10N only determines the "values" of
DECIMAL_SEPARATOR and THOUSAND_SEPARATOR according to the current locate
set to LANGUAGE_CODE, but if USE_L10N = False then is display the
default values.
Why USE_L10N determining use of thousands separator?
https://docs.djangoproject.com/en/dev/ref/settings/#use-l10n
Here not speak of this variable determines the use of the thousands separator.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/1516598.QbdADRIKfy%40deblack.
--
You received this message because you are subscribed to the Google Groups "Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
For more options, visit https://groups.google.com/groups/opt_out.