After deploy helps you to create and manage automated deploy tasks in your Django application. Inspired by Rails after_party
Install the package using pip by running:
pip install django-after-deploy
Add "after_deploy" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'after_deploy', ]Now after_deploy commands are available, use install flag:
python manage.py after_deploy --install
Run
python manage.py after_deploy -g my_first_taskto create your first task, they'll stay at root project, on tasks folder:my-project |-- my-app | |-- __init__.py | |-- apps.py | |-- models.py | |-- settings.py |-- tasks | |-- __init__.py | |-- _000001_my_first_task.py |-- manage.py
For execute all unapplied tasks you can run
python manage.py after_deploy --run. If you need execute again a specfic task, you can runpython manage.py after_deploy -r my_first_task.
If you find an issue with AfterDeploy please log an issue. I will accept pull requests.