How to use django models or django setttings file in scheduled tasks which runs automatically.
How to use django models or django setttings file in scheduled tasks which runs automatically.
Have a look at the Django docs about creating management commands.