It is in the documentation. I found it. https://docs.djangoproject.com/en/1.6/howto/custom-template-tags/ Keep it like this, then.