Juan Encarnacion
Juan Encarnacion

Reputation: 21

How to run django application in background

I have a Django application that sends emails to customers. I want this application to run in the background after a certain time, is like a job/quote process. What could be best way to do this with Python/Django?

Upvotes: 2

Views: 1118

Answers (2)

user5943862
user5943862

Reputation: 39

You can use docker And then you can run your web application in the background..... DockerFile

If you want to run script background you can you CRONTAB or scheduler.

Upvotes: -1

Moinuddin Quadri
Moinuddin Quadri

Reputation: 48047

How to run django application in background?

This question makes no sense. Django is a web based framework. What do you mean by running a web application in background?

I think you want to ask: How to run periodic background tasks in Django application?

For that purpose you may use Celery. Celery with the help of Message Queueing service allows you to perform tasks in background. It also supports execution of custom script at mentioned duration. Check: Periodic tasks in Celery

Upvotes: 2

Related Questions