refer to https://docs.djangoproject.com/en/1.3/howto/custom-template-tags/
2012/2/15 Thomas Rega <tho...@googlemail.com> > Am 14.02.12 21:28, schrieb Nolhian: > > Hello everyone, >> >> In my template I put : >> >> {% load pygmentize %} >> >> But I got : >> TemplateSyntaxError at / >> 'pygmentize' is not a valid tag library: Template library pygmentize >> not found, tried >> django.templatetags.**pygmentize,django.contrib.** >> admin.templatetags.pygmentize >> >> How can I load it ? I don't want to mess with django files. >> >> Thanks ! >> >> Hi Nolhian, > > "Custom template tags and filters must live inside a Django app." > > https://docs.djangoproject.**com/en/dev/howto/custom-**template-tags/<https://docs.djangoproject.com/en/dev/howto/custom-template-tags/> > > "The app should contain a templatetags directory, at the same level as > models.py, views.py, etc." > > Good luck, > TR > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to django-users+unsubscribe@** > googlegroups.com <django-users%2bunsubscr...@googlegroups.com>. > For more options, visit this group at http://groups.google.com/** > group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en> > . > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.