Monday, October 1, 2012

Re: Add your own template library


Thanks for the reply. Got the code working.
It was my mistake the way I was using template in my html page.

I had html page as:

  {%load repeat%}
  ..
  {% repeat data %} {% endrepeat %}

I was not required to add  "{%load repeat%}" line, which was resulting into error. Straightway the repeat can be used.

- Thanks

On Monday, 1 October 2012 14:13:28 UTC+5:30, Tom Evans wrote:
On Mon, Oct 1, 2012 at 5:59 AM, Ashish Jain <ashishj...@gmail.com> wrote:
> 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
>

You can only load template libraries from apps. Is your template
library contained within an app listed in INSTALLED_APPS?

Cheers

Tom

--
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/-/u1ibfrtyIlsJ.
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