Sunday, September 30, 2012

Re: Add your own template library

Hi,

Yes it do have __init__.py

I have created a simple project of template tags and have installed it as a python package with setup.py.

After which I am referring it into my website.

- Thanks for reply

On Monday, 1 October 2012 09:45:46 UTC+5:30, Laxmikant Gurnalkar wrote:
Hi Ashish,
Is there __init__.py in your templatetags directory ?

cheers
Laxmikant


On Mon, Oct 1, 2012 at 9:36 AM, Ashish Jain <ashishj...@gmail.com> wrote:
Hi,

I have created a custom template tags library which I would like to use across my application.
I referred this code snippet, http://djangosnippets.org/snippets/342/

but still when I refer the tag in my code as: {% load repeat %}.

It says 'repeat' is not a valid tag library, tried django.templatetags.repeat,django.contrib.staticfiles.templatetags.repeat

Any help would be appreciated.

- Thanks
Ashish

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/4AqRRolTYK0J.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
GlxGuru

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/I1f8NTaWQM4J.
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.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment