Using crontab with django [duplicate]
问题 This question already has answers here : Django - Set Up A Scheduled Job? (24 answers) Closed 5 years ago . I need to create a function for sending newsletters everyday from crontab. I've found two ways of doing this on the internet : First - file placed in the django project folder: #! /usr/bin/env python import sys import os from django.core.management import setup_environ import settings setup_environ(settings) from django.core.mail import send_mail from project.newsletter.models import