By default, Django migrations are run only once. But sometimes we need to rerun a Django migration, especially when testing custom migrations during development.
Django forms are an excellent way to manage user input in a Django application. Once you learn how to wield them, you'll never go back to manually coding a form tag and handling the response.
This guide shows you how to set up a Django application and development environment using Docker.Note: The previous version of this guide was written before Docker for Mac was available.
Today, I stumbled upon a use case where I needed to have a querysets that had objects from different models. Django has a neat "contenttypes framework" which is a good way to achieve this.
howchoo was originally built in PHP and Codeigniter, then we switched completely to Django in February of 2015.
I have been programming for a while and have only recently begun to implement testing into my development process. Needless to say, this guide is intended for someone who is starting at ground zero.