7c9dce9f901069c6f209c0432f5f292077b03703
[osm/LW-UI.git] / new_project_type.py
1 from django.core.management.base import BaseCommand, CommandError
2
3
4 class Command(BaseCommand):
5 help = 'Create a new project type'
6
7 def handle(self, *args, **options):
8
9 try:
10 print 'new project type'
11 except Exception:
12 raise CommandError('Error unable to create a new project type')
13
14 self.stdout.write(self.style.SUCCESS('New project type successfully created'))