djangosnippets.org: Latest snippets tagged with 'defaults'http://djangosnippets.org/tags/defaults/2011-09-02T13:55:18.394173-05:00Configurable defaults for contrib.sites default Site during syncdb
2011-09-02T13:55:18.394173-05:00chrischambershttp://djangosnippets.org/snippets/2536/<p>This simple snippet provides a more sensible default for the Site object created during the first pass of syncdb (that is, with a default domain of <code>localhost:8000</code>). I made this so that the admin's "view on site" button will work automagically during my development cycle (which often involves dropping …</p>
Freely redistributable