S
S
sportik1742021-04-09 06:13:15
Django
sportik174, 2021-04-09 06:13:15

How to convert number to price in Django template?

There is a number for example 1990
How to convert this number to this form in the Django template: 1 990
Of course, you need this to work with any number 11 990, 245 000
That is, you need to format the number into a price

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2021-04-09
@pyHammer

Here you go Currency formatting filter

M
maksam07, 2021-04-10
@maksam07

https://stackoverflow.com/a/56748295

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question