Created
October 28, 2011 21:01
-
-
Save fsouza/1323545 to your computer and use it in GitHub Desktop.
Quiet version of runserver (only for continuous integration!)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import sys | |
from django.core.management.commands.runserver import Command as BaseCommand | |
class Command(BaseCommand): | |
def handle(self, addrport='', *args, **options): | |
sys.stdout = open('/dev/null', 'w') | |
sys.stderr = open('/dev/null', 'w') | |
return super(Command, self).handle(addrport, *args, **options) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment