[Answered ]-How to pass parameter variable from Django web to python script?

1👍

If your condition data is serializable, then you can use Celery to run python script. It’ll be as simple as:

# in your Django code that run on user submitting data
...
send_email.delay()
...

# Celery task
@shared_task(bind=True)
def send_email(list_of_your_condition_parameters):
    # do job

Leave a comment