How to deploy Django migrations
You've started learning Django, you've created a new Django app and you've deployed it to a Linux webserver in the cloud somewhere. It's all set up and running nicely. Now you want to make some more changes and you need to update your models.
How do you deploy those model …
Fix long running tasks in Django views
What do you do if you have a Django view that runs too slow? Slow views are a bad user experience. Users hate waiting. Even worse, if the view takes too long to return a response, they will receive a "408 Request Timeout" error, completely ruining the website experience.
Sometimes …
Simple scheduled tasks with Django Q
How do you run some code once a day in Django, or every hour? This post will explain how to set up scheduled code execution in Django using Django-Q.
There are a lot of reasons you might want to run code on a schedule. You may want to:
- Process a …