@register.simple_tag def kes(gelenveri, isaret, bas, son): print gelenveri, isaret, bas, son return gelenveri.split(isaret)[int(bas):int(son)]