Skip to content

Instantly share code, notes, and snippets.

View ondrejkolin's full-sized avatar

Ondřej Kolín ondrejkolin

  • Česká republika
View GitHub Profile
@epicserve
epicserve / example_command.py
Created October 30, 2013 17:05
Example of how to setup logging for a Django management command.
from django.core.management.base import BaseCommand
from mymodule import main
import logging
class Command(BaseCommand):
help = 'Do foo'
def handle(self, *args, **options):