Closed r4f closed 5 years ago
Does the following line in /src/pretalx/settings.py PLUGINS = [] need to be changed maybe?
Not at all, that variable doesn't need to be modified.
Or maybe is it relevant (however I don't think so) in which location the plugin is installed?
No, plugins work via their setup.py entrypoint configuration.
Also what I noticed was that I did need to install django in my virtual environment to run the setup.py of the plugin, which is not noted anywhere.
Yes and no – the plugin needs to be installed in the same virtualenv as you install pretalx (naturally: they have to interact after all). pretalx installs Django as a dependency. Having to install django separately means that you have installed the plugin not in the same virtualenv as pretalx. I think all tox commands run in their own virtualenv by default, so that's probably the issue. The pretalx startup output will tell you which plugins have been found.
Thank you. That explanation helped a lot.
Maybe it would be useful to add the command
source /path/to/pretalx/.env/bin/activate #to activate the virtualenv
before the plugin-installation instruction and
deactivate #to get out of the virtualenv
after.
Or maybe there is some easier way with tox-commands for that, but I am not so much aquainted with tox, so I don't know.
Anyway, thanks for the quick response, and thanks for the great project! Cheers
I now realize, that not everybody might use the tox-setup, so the source
-command might not be the same for every setting. But for someone as me, who just copied the tox
-commands from your developer-documentation, in the line
Activate the virtual environment you use for pretalx development.
it was not clear, which virtual environment is refers to.
I'm actually not sure how much value tox adds for the starting developer. It was advertised to me as a way to get people onboarded faster and easier, but it seems to me that running additional commands is more clumsy. I might just revert the development docs back to a regular virtualenv.
I tried to install a plugin (for testing I used the media-ccc-plugin), but afterwards in the plugin section no plugin showed up.
This is what I did:
PLUGINS = []
need to be changed maybe?