1
I’m having trouble displaying the results of a calculation. I have a Decimalfield and want to return it formatted this way:
1.000.000,00
If I order to display normally without tags, it looks like this:
1000000,00
If I add {{value|floatformat:2}}
looks the same:
1000000,00
If I load humanize and add an intcomma ({{value|floatformat:2|intcomma}}
gets like this:
1,000,000,00
I don’t know how to solve this problem.
Man settings.py
is that way:
LANGUAGE_CODE = 'pt-BR'
TIME_ZONE = 'America/Sao_Paulo'
USE_I18N = True
USE_L10N = True
USE_TZ = True
Solved, thanks! It just wasn’t necessary to load the l10n because the floatformat is standard of the Django template if I’m not mistaken.
– Guilherme IA