krischer/django-plugins

Install through code

Closed this issue · 2 comments

Hi,
I'm developing an app using your plugin system, and I have a question.

There is a way to force to install a new plugin without restart the application?
I put the files in the correct folder, and call syncplugins command, but anything happens.

Can you help me? thanks

Hi,

I would have to dig really deep as its been a while. Furthermore I essentially only maintain this package and make sure it keeps on working with new Python and Django version; I did not write it.

But I guess you would just have to mirror what is done with the syncplugins command and maybe reinitialize some objects. The django shell and Python's introspective nature should make this fairly easy to figure out.

https://github.com/krischer/django-plugins/blob/master/djangoplugins/management/commands/syncplugins.py

Let me know if and how you get it working and I'll add it to the docs. Or you just send a PR.

Cheers!

No answer in over a year. Closing.