I am after some advice on how I can create a plugin for my django project. I am creating a simple CMS, but I want it to be extensible.
Ideally, I approach an approach that will allow people to create plugins that extend the functionality of my project.
I have two main types of plugins:
Data plugin: for example, a data plugin can be a “block” plugin that will add blogging functionality to my CMS.
Decorator Plugin: This type of plugin will add functionality to existing applications, possibly even without it. An example is the TinyMCE plugin, which replaces all text fields with the rich TinyMCE editor.
I saw how http://martyalchin.com/2008/jan/10/simple-plugin-framework/ , but I'm not sure if this meets my requirements?
I also want to consider patterns when defining my plugin system. So what I mean, when someone creates a plugin, I need an approach that will allow plugins to appear in specific containers inside the main template.
I looked at http://code.google.com/p/django-app-plugins/ , but wondered if there are any other approaches that people could offer me to see / consider?
I understand that this is very academic, but I just did not have much success in finding approaches that are convenient for me to work with, so I would appreciate any advice that could be offered
Thanks,
Jamie
Jamie source share