djangosnippets.org: Latest snippets tagged with 'BaseCommand'https://djangosnippets.org/tags/basecommand_1/2012-08-14T08:04:55.079970-05:00Add example content with BaseCommand
2012-08-14T08:04:55.079970-05:00magik_cypresshttps://djangosnippets.org/snippets/2800/<p>Add a dummy text for your tests</p>
<p>Copy/Paste script into management app <strong>content/management/commands/importcontent.py</strong></p>
<p><strong>Usage:</strong> python manage.py importcontent 40</p>
Freely redistributableAdd example contact with BaseCommand
2012-08-14T08:01:38.658850-05:00magik_cypresshttps://djangosnippets.org/snippets/2799/<p>Add a dummy contact for your tests</p>
<p>Copy/Paste script into management app <strong>content/management/commands/importcontact.py</strong></p>
<p><strong>Usage:</strong> python manage.py importcontact</p>
Freely redistributable