I\'m trying to format numbers. Examples:
1 => 1 12 => 12 123 => 123 1234 => 1,234 12345 => 12,345
It strikes as a
Well I couldn't find a Django way, but I did find a python way from inside my model:
def format_price(self): import locale locale.setlocale(locale.LC_ALL, '') return locale.format('%d', self.price, True)