in Django 1.10 & py 2.7 how can I find out the current authorized user's locale decimal-point, i.e. does the current user use ',' or '.' as decimal separator (should it be 11,23 or 11.23)?
I am using _thread_locals for some other user settings, all things works fine and ',' vs. '.' is used correctly everywhere - but I now need to find out inside a view which is used and have not been able to figure this out...
BTW - each authorized user has own locale so one user can have ',' and another '.' depending on the user locale.
/ Jens
Django has native localization built in for both templates and forms. Where are you determining this?
In a template:
Or in a form:
You have to enable the localization module: