bgneal@1: from django.core.management.base import BaseCommand, CommandError bgneal@1: from photologue.management.commands import create_photosize bgneal@1: bgneal@1: class Command(BaseCommand): bgneal@1: help = ('Creates a new Photologue photo size interactively.') bgneal@1: requires_model_validation = True bgneal@1: can_import_settings = True bgneal@1: bgneal@1: def handle(self, *args, **options): bgneal@1: create_size(args[0]) bgneal@1: bgneal@1: def create_size(size): bgneal@1: create_photosize(size)