rjust

Justifies the value in a field of a certain width to the right, using spaces.

For example:

{{ value|rjust:7 }}

When value is hello then the output is __hello (with spaces).

Justifying only works for single byte character values. At this moment there is no support for multi-byte unicode characters.

Edit on GitHub

ljust Strings center

Referred by

Filters

Filters transform template variables before they are rendered.