Thank you. Knew I was missing something easy.
On Tuesday, October 27, 2015 at 8:54:08 PM UTC-4, foobar wrote:
>
> Your language string is backwards:
>
> >>> activate("en-us")
> >>> intcomma(1000)
> '1,000'
>
> >>> activate("en")
> >>> intcomma(1000)
> '1,000'
>
>
> use_l10n=False in a tem
Your language string is backwards:
>>> activate("en-us")
>>> intcomma(1000)
'1,000'
>>> activate("en")
>>> intcomma(1000)
'1,000'
use_l10n=False in a template is:
{% load l10n %}
{% localize off %}
{{ value }}
{% endlocalize %}
https://docs.djangoproject.com/en/1.8/topics/i18n/formatting
I am feeling a little lost, a project that I have used intcomma in reliably
on an update suddenly stopped getting the commas inserted. This is for an
out of request cycle email.
Attempting activate the language doesn't seem to change anything. Am I
missing something simple here?
>>> from djang
3 matches
Mail list logo