first commit
[osm/LW-UI.git] / projecthandler / management / commands / new_project_type.py
diff --git a/projecthandler/management/commands/new_project_type.py b/projecthandler/management/commands/new_project_type.py
new file mode 100644 (file)
index 0000000..7c9dce9
--- /dev/null
@@ -0,0 +1,14 @@
+from django.core.management.base import BaseCommand, CommandError
+
+
+class Command(BaseCommand):
+    help = 'Create a new project type'
+
+    def handle(self, *args, **options):
+
+            try:
+                print 'new project type'
+            except Exception:
+                raise CommandError('Error unable to create a new project type')
+
+            self.stdout.write(self.style.SUCCESS('New project type successfully created'))