Re: docstring format documentation for the admin doc contrib?

2009-09-12 Thread Andrew R
a Web page on the official Django site. > > source:http://docs.djangoproject.com/en/dev/faq/general/#how-can-i-download-... > > On Sun, Sep 13, 2009 at 12:21 AM, Andrew R > wrote: > > > > > > > The built in templates and filters have formatted docstrings (``, > &g

docstring format documentation for the admin doc contrib?

2009-09-12 Thread Andrew R
The built in templates and filters have formatted docstrings (``, ===, etc.). I don't see anywhere where this syntax is documented. Where can I find information on this. Example docstring: def yesno(value, arg=None): """ Given a string mapping values for true, false and (optionally) N

Re: Custom filters failing with "no module"

2007-07-01 Thread Andrew R
Malcolm Tredinnick wrote: > On Tue, 2007-06-12 at 05:44 -0400, Andrew R wrote: >> I have to admit, though, that I think adding a custom filter should be as >> simple >> as this code alone: >> >>> from django.template import Library >>> >>>

Re: Custom filters failing with "no module"

2007-06-12 Thread Andrew R
James Bennett wrote: > So long as your code is in a location where your code can be imported > by Python, there is another way; there are a couple of undocumented > functions in the template system which handle the loading of tag > libraries. > [snip] > So something like > > from django.temp

Re: Custom filters failing with "no module"

2007-06-09 Thread Andrew R
James Bennett wrote: > On 6/6/07, Andrew R <[EMAIL PROTECTED]> wrote: >> whereas I just want it to import "javadoc_filter" from my current dir. I'm >> sure >> this is by design in django but there must be a way around it. > > This is one of th

Custom filters failing with "no module"

2007-06-08 Thread Andrew R
All, I have a code generating program that using django's nifty template packages. It all worked well until I wanted to use a custom filter. No matter what I try, I get: django.template.TemplateSyntaxError: 'javadoc_filter' is not a valid tag library: Could not load template library from