Use script after finish Setup Wizard

Hello,
How can I use a custom script, for insert data to DB or other?
And run it directly for once after Setup Wizard is completed!
Can I use patches for this?
Thanks

@OmarJaber

If you have custom app use after_install from hooks.py

Not sure but you can try that after_install to create your documents.

1 Like

This is not working
after_install run after installing the app on the site, not after finish the Setup Wizard :confused:

@OmarJaber

Try setup_wizard_complete event in hooks.py.

1 Like

Yes, I use this event and its OK with me
thanks :slight_smile: