I am trying to schedule a sending function in Django so in views.py I wrote this function
but I have a problem that the application stop running and only did the SendingEmail function?
import schedule import time def SendingEmail(): print('ok message') schedule.every(5).minutes.do(SendingEmail) while 1: schedule.run_pending() time.sleep(1)
is there a way to do this without affecting the application(easy and fast)?
All my best