If you specify takescontext in creating a template tag, 1254 the tag will have no required arguments, and the underlying Python function: 1255 will have one argument - the template context as of when the tag was called. Its a simple extension of Roberts simpletag. To solve this, Django provides a takescontext option for: 1253 1255: inclusion tags. If it is still not working for you, please comment. Attached is a patch for a tag function decorator that I find useful. Loading file in parent template and then expecting it would be available to all child templates, would not work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |