Mercurial > public > madeira
view mysite/photologue/management/commands/plcreatesize.py @ 28:a404f93a68d3
Decrease by 2 orders of magnitude the number of queries needed to generate the gigs page for the Madeira.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 31 Mar 2011 00:14:34 +0000 |
parents | 0dcfcdf50c62 |
children |
line wrap: on
line source
from django.core.management.base import BaseCommand, CommandError from photologue.management.commands import create_photosize class Command(BaseCommand): help = ('Creates a new Photologue photo size interactively.') requires_model_validation = True can_import_settings = True def handle(self, *args, **options): create_size(args[0]) def create_size(size): create_photosize(size)