Re: number input format
On Feb 7, 9:48 pm, Vittorino Parenti wrote: > I know but doesn't work. maybe it's my problem. In input form I see > '.'. > Thanks, > Vittorino. If I remember correctly, you must also have localize=True for your form fields. Maybe with correct settings.py this happens automatically. As said, I don't remember. For more info, see: https://docs.djangoproject.com/en/dev/topics/i18n/formatting/#locale-aware-input-in-forms - Anssi -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: number input format
I know but doesn't work. maybe it's my problem. In input form I see '.'. Thanks, Vittorino. On 7 Feb, 12:01, Denis Darii wrote: > from the django's global_settings: > > # Decimal separator symbol > DECIMAL_SEPARATOR = '.' > > # Boolean that sets whether to add thousand separator when formatting > numbers > USE_THOUSAND_SEPARATOR = False > > # Number of digits that will be together, when spliting them by > # THOUSAND_SEPARATOR. 0 means no grouping, 3 means splitting by thousands... > NUMBER_GROUPING = 0 > > # Thousand separator symbol > THOUSAND_SEPARATOR = ',' > > On Tue, Feb 7, 2012 at 11:56 AM, Vittorino Parenti < > > > > > > vpare...@thundersystems.it> wrote: > > Hi, > > I saw there is this setting DATE_INPUT_FORMATS for date. > > Is there a similar solution for the numbers? > > Thanks, > > Vittorino. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-users@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=en. > > -- > This e-mail and any file transmitted with it is intended only for the > person or entity to which is addressed and may contain information that is > privileged, confidential or otherwise protected from disclosure. Copying, > dissemination or use of this e-mail or the information herein by anyone > other than the intended recipient is prohibited. If you are not the > intended recipient, please notify the sender immediately by return e-mail, > delete this communication and destroy all copies. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: number input format
from the django's global_settings: # Decimal separator symbol DECIMAL_SEPARATOR = '.' # Boolean that sets whether to add thousand separator when formatting numbers USE_THOUSAND_SEPARATOR = False # Number of digits that will be together, when spliting them by # THOUSAND_SEPARATOR. 0 means no grouping, 3 means splitting by thousands... NUMBER_GROUPING = 0 # Thousand separator symbol THOUSAND_SEPARATOR = ',' On Tue, Feb 7, 2012 at 11:56 AM, Vittorino Parenti < vpare...@thundersystems.it> wrote: > Hi, > I saw there is this setting DATE_INPUT_FORMATS for date. > Is there a similar solution for the numbers? > Thanks, > Vittorino. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- This e-mail and any file transmitted with it is intended only for the person or entity to which is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
number input format
Hi, I saw there is this setting DATE_INPUT_FORMATS for date. Is there a similar solution for the numbers? Thanks, Vittorino. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.