djangosnippets.org: Latest snippets tagged with 'recreate database'https://djangosnippets.org/tags/recreate-database/2011-12-30T02:48:28.635686-06:00manage.py reboot
2011-12-30T02:48:28.635686-06:00givityhttps://djangosnippets.org/snippets/2636/<p>1) Simply create a "management/commands" folder in one of your INSTALLED_APPS folders. Then add a "reboot.py" file in your "management/commands"</p>
<p>2) In settings.py, you can OPTIONALLY add:
PROJECT_NAME = 'Blah'
PROJECT_DOMAIN = 'blah.com'</p>
<p>These two settings will be used to create a "Site" object as well as a superuser. If …</p>
Freely redistributable