Setup something to process long-running tasks such as sending email etc. Possibly using celery and rabbitmq or similar.