Using Django models in a standalone python script

>>> import python
getpy
Published in
1 min readApr 23, 2017

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

Note one can also use management commands.

--

--

>>> import python
getpy
Editor for

Free Python Newsletter http://importpython.com/newsletter/ keeps you updated on what's happening in the world of Python. Curated By @originalankur