djangosnippets.org: Latest snippets posted by Lacrymologyhttp://djangosnippets.org/users/Lacrymology/2013-01-21T10:50:40.998661-06:00Lacrymologycreate_model_instances management command
2013-01-21T10:50:40.998661-06:00Lacrymologyhttp://djangosnippets.org/snippets/2881/<p>This management command is run like this: <code>./manage.py -a someapp filename.cfg</code></p>
<p>it looks in <code>someapp</code>'s directory for a file called <code>/config/filename.cfg</code> with the format explained in the help text, and creates the model instances described in the config file.</p>
<p>It uses the configobj module.</p>
<p>this would be an example …</p>
Freely redistributable