Format a float to justify to the right
{{ value|rjust:"10" }} didn't work for me so I had to format the string before being passed to the HTML page.
I first right aligned the string with an arbitrary character:
amount.rjust(12, '$')
And then replace the character with "&nbsp;"
amount.replace('$', '&nbsp;')
I have a table in my HTML and I want to put a float variable into a column. I also want this variable to justify itself to the right. 
Currently, I am trying {{ float|floatformat:2|rjust }}, but it keeps throwing up a TemplateSyntaxError. Is it even possible to do this via the template system, or will I just have to use some CSS styling for this?