Gabriel Saldaña's blog

personal blog, photography and programming

scripting

python snakes

Using Django models in external Python scripts

Since Django 1.4 the syntax to import you models in external scripts has changed. The setup_environ method has been deprecated for a while [...]