sample_command.py.svn-base 213 Bytes EditWeb IDE 1 2 3 4 5 6 7 from django.core.management.base import NoArgsCommand from forum.models import Comment class Command(NoArgsCommand): def handle_noargs(self, **options): objs = Comment.objects.all() print objs