'how to run django custom management command using crontab?

I want to delete expired file every min I created command python manage.py delete which delete all expired files. but crontab won't work, I don't know maybe I did something wrong. here cronjobs in settings.py

CRONJOBS = [
    ('*/1 * * * *', 'django.core.management.commands.delete'),
]

so how can I fix this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source