George Song kirjoitti: > On 5/23/2009 8:53 AM, Jani Tiainen wrote: >> Kai Diefenbach kirjoitti: >>> Hi Jani, >>> >>> On 23 Mai, 14:13, Jani Tiainen <rede...@gmail.com> wrote: >>>> I'm designing application (site) that is supposed to rely heavily on >>>> pluings. >>>> >>>> i didn't found much of references how I can create plugin ... >>> You may look into this article: >>> http://martyalchin.com/2008/jan/10/simple-plugin-framework/ >> I already did. it just didn't (Or I missed somehow) how to make >> something like "toolbar" buttons in plugin that could be injected to my >> main template. > > If you're using Marty's pattern, why don't you just pass the mount point > as a context variable to your template, then you can easily loop through > the plugins that way, right? >
I did tried that, maybe I just did something a bit wrong since it didn't seemed to work. Static text worked but when ever I wanted to print something from template I got quite interesting errors, like {% url %} templatetag gave always errors. It's kind of interesting that no-one has built "real" plugin based system on top of Django. Using just plain apps works without a hitch. -- Jani Tiainen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---