Posts by Everton De Oliveira Sarmento • 1 point
1 post
-
0
votes6
answers16210
viewsA: How do I return a value in the Brazilian currency format in the Django view?
With only one line of code and no matter what: valor = 1768 valor_real = "R${:,.2f}".format(valor).replace(",", "X").replace(".", ",").replace("X", ".")