http://stackoverflow.com/questions/550632/favorite-django-tips-features -- Fourth Answer Down from the Top:
from django import template template.add_to_builtins('project.app.templatetags.custom_tag_module') On Mon, Apr 30, 2012 at 9:40 PM, CLIFFORD ILKAY <clifford_il...@dinamis.com>wrote: > On 04/30/2012 09:21 PM, Rajat Jain wrote: > >> Hi, >> >> I am shifting to Django 1.4 and want to use the timezone support (for >> which I want to use {% load tz %} in my templates). The problem is that >> I have aroudn 30-40 templates, and manually adding these tags to each >> template is a pain. Is there a way by which I can do this loading by >> default in all the templates? >> > > Hi Rajat, > > You can use sed. See: > <http://www.grymoire.com/Unix/**Sed.html#uh-39<http://www.grymoire.com/Unix/Sed.html#uh-39> > >. > -- > Regards, > > Clifford Ilkay > Dinamis > 1419-3230 Yonge St. > Toronto, ON > Canada M4N 3P6 > > <http://dinamis.com> > +1 416-410-3326 > > > -- > 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.