79091324

Date: 2024-10-15 18:46:03
Score: 1
Natty:
Report link

the django-crontab project last update was in 2016.. over 8 years ago. It's probably a dead project.

I'd recommend to implement a custom django admin command and register it with crontab the old fashioned way (crontab -e).

in a bash file, setup your virtual environment then call the custom admin script similar to below python manage.py <script_name> --settings=<django_app>.settings

schedule the script to run in cron (e.g.): 30 * * * * <path_to_script>/<script_name>.sh

if adding your bash file to git, make sure you set your .sh file to maintain execute. for example, C:\Temp\TestRepo>git update-index --chmod=+x foo.sh

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Eric