Python

dgango template 에서 숫자에 콤마 찍기

BIZLAB 2019. 10. 29. 17:53

setting.py

INSTALLED_APPS = [

...

'django.contrib.humanize',

...

]

 

template

{% load humanize %}

 

{% object.name|intcomma %}