django-bakery icon indicating copy to clipboard operation
django-bakery copied to clipboard

Humanize template tags being ignored

Open mattwaite opened this issue 8 years ago • 2 comments

Am using humanize's intcomma template tag to do what it says on the tin. Works in Django's development server, but the comma disappears in the build. Hunting for a solution myself, but flagging it here in case others have seen something similar or have ideas.

mattwaite avatar Sep 11 '17 15:09 mattwaite

Ah yes. I've seen this myself but we've never solved it. I believe it is an issue caused by the internationalization system not functioning properly inside bakery.

This does not solve the deeper problem, but I believe you can temporarily work around it by passing in False to the use_i10n keyword argument on the filter.

palewire avatar Sep 11 '17 15:09 palewire

You could also try setting USE_L10N = False in your settings.py.

palewire avatar Sep 11 '17 16:09 palewire