1👍
✅
You can write a custom template tag for this
def split_len(seq, length):
return ":".join([seq[i:i+length] for i in range(0, len(seq), length)])
split_len("1234567890AB", 2)
Source:stackexchange.com