Added function for formatting Django tags.

Signed-off-by: Casey Dwyer <caseydwyer@gmail.com>