djangosnippets.org: Latest snippets tagged with 'management-command'https://djangosnippets.org/tags/management-command/2012-08-10T00:00:21.599477-05:00Fail Faster: unsafe_test Management Command
2012-08-10T00:00:21.599477-05:00majgishttps://djangosnippets.org/snippets/2798/<p>The faster you fail the faster you reach success. This management command runs tests within the django environment, but without a test database, hence the word "UNSAFE". It only runs unittests for a single application, which are not subclasses of django.test.TestCase. Django's TestCases are not supported because they attempt to …</p>
Freely redistributableQuiet runserver
2010-06-02T08:40:38.785623-05:00danielrosemanhttps://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 redistributable