Django plugin wireframe design templates

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

+6
source share
1 answer

I would recommend using something like this: simple plugins . As you already stated, especially for plugins, they should be adjusted according to your needs. Therefore, you can change it simply because it explains why it was designed the way it was.

Django-app-plugins is not actively developing as far as I know. In the end, you will still write and edit it. So why not jump straight. Unfortunately, for this I do not know any other structures. Hope this still helped a bit.

+1
source

Source: https://habr.com/ru/post/893767/


All Articles