1 from django
.core
.management
.base
import BaseCommand
, CommandError
4 class Command(BaseCommand
):
5 help = 'Create a new project type'
7 def handle(self
, *args
, **options
):
10 print 'new project type'
12 raise CommandError('Error unable to create a new project type')
14 self
.stdout
.write(self
.style
.SUCCESS('New project type successfully created'))