Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

template Django - default postinstall script #619

Open
matthieumarrast opened this issue Feb 19, 2024 · 1 comment
Open

template Django - default postinstall script #619

matthieumarrast opened this issue Feb 19, 2024 · 1 comment
Assignees

Comments

@matthieumarrast
Copy link
Contributor

Problem

In the django template, the postinstall script is in charge of initiliazing the django project and to make it works with the mfserv/nginx routing.

But this postinstall file must absolutely be emptied or deleted after the first plugin installation, otherwise the initilization is made each time the plugin is installed.

Solution

Add a mention to delete or empty the postinstall script (at the end of the plugin installation) in documentation http://metwork-framework.org/pub/metwork/releases/docs/stable/mfserv/870-tutorials/041_python3_django3_plugin/

For now I do not imagine an automatic solution, as the postinstall script cannot destroy (or empty) itself.

@matthieumarrast matthieumarrast self-assigned this Feb 19, 2024
@thebaptiste
Copy link
Contributor

thebaptiste commented Feb 20, 2024

I think to an automatic solution : this shell should test the presence of a file (for example .postinstall.done), do nothing if present and create the file at the end of the shell (at first execution).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants