About Flexible Decimal Point Separators in Form Fields

Add lang="en-150" to <input type="number" /> if you want to allow both, point and comma, as the decimal point separator.

If you are using django-crispy-forms, you can do that with such declaration in the form helper:

layout.Field("price", lang="en-150"),

Tips and Tricks Programming User Experience Django 4.2 Django 3.2 Django 2.2 HTML5 django-crispy-forms

Django/Python Consulting

If you have a specific Django challenge or integration you'd like to solve, I'd be happy to help. Book a free 30-minute call to discuss your project, see if we're a good fit, and explore the best approach for your needs. After the call, you'll receive a tailored cost estimate based on what we discuss.