Using Django models in a standalone python script

When you want to use Django models for persistence in a standalone script.

Note one can also use management commands.