djangosnippets.org: Latest snippets tagged with 'runserver'http://djangosnippets.org/tags/runserver/2011-12-30T02:48:28.635686-06:00manage.py reboot
2011-12-30T02:48:28.635686-06:00givityhttp://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 redistributableUse the development server on the network
2011-03-09T11:13:03.015443-06:00perevilashttp://djangosnippets.org/snippets/2387/<p>To let the development server use the network you must use the ip of your machine. </p>
Freely redistributableSimple twisted replacement for runserver
2010-10-21T23:18:51.174921-05:00tomfmasonhttp://djangosnippets.org/snippets/2238/<p>This is an extremely simple example but from here the possibilities are almost endless :)
</p>
Freely redistributableQuiet runserver
2010-06-02T08:40:38.785623-05:00danielrosemanhttp://djangosnippets.org/snippets/2050/<p>It's quite common to use Django's <code>static.serve</code> functionality to serve media assets via the built-in development server. However, I always find that this is far too noisy - every asset produces a line of output on the console, and any debug messages I want to put there are hard to …</p>
Freely redistributableprint SQL statements
2010-02-09T15:34:49.379511-06:00zuzelvphttp://djangosnippets.org/snippets/1917/<p>Modifies the as_sql methods to print the queries.
</p>
Freely redistributablepyserver -- runserver alias
2008-05-19T14:57:02.793415-05:00presclarkhttp://djangosnippets.org/snippets/762/<p>I use Django's built-in development server all the time, but get tired of typing out the command to run it, and if I'm testing some custom admin css/js, I <em>really</em> get tired of typing out the command that correctly directs the middleware to use my admin media dir.
</p>
<p>So I …</p>
Freely redistributablerun "silent" dev server
2007-06-03T00:25:28.806135-05:00justinlillyhttp://djangosnippets.org/snippets/258/<p>This will hide the scrolling output from the development server so you can ssh and run the server in peace, for those of us with only one SSH session active developing on a remote server.</p>
Freely redistributable