I need information about how to hit a django API running on ec2 on every night 00:00 hours.
Thanks in advance.
You can use crontab
to schedule running a bash
file every midnight. The bash file will use curl
to do a Django API call (or you can use anything else).
crontab -e
0 0 * * * /bin/sh django_api_call.sh
django_api_call.sh
#!/bin/sh
curl http://www.django-app.com
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments