comparison photologue/management/commands/plcreatesize.py @ 71:e2868ad47a1e

For Django 1.4, using the new manage.py.
author Brian Neal <bgneal@gmail.com>
date Sat, 14 Apr 2012 16:40:29 -0500
parents madeira/photologue/management/commands/plcreatesize.py@63e4211628e1
children
comparison
equal deleted inserted replaced
70:f26cdda0ad8b 71:e2868ad47a1e
1 from django.core.management.base import BaseCommand, CommandError
2 from photologue.management.commands import create_photosize
3
4 class Command(BaseCommand):
5 help = ('Creates a new Photologue photo size interactively.')
6 requires_model_validation = True
7 can_import_settings = True
8
9 def handle(self, *args, **options):
10 create_size(args[0])
11
12 def create_size(size):
13 create_photosize(size)