浏览代码

create template command

blezz-tech 1 月之前
父节点
当前提交
f77b200cd0
共有 3 个文件被更改,包括 11 次插入0 次删除
  1. 0 0
      management/__init__.py
  2. 0 0
      management/commands/__init__.py
  3. 11 0
      management/commands/init_default_data.py

+ 0 - 0
management/__init__.py


+ 0 - 0
management/commands/__init__.py


+ 11 - 0
management/commands/init_default_data.py

@@ -0,0 +1,11 @@
+from django.core.management.base import BaseCommand
+
+
+class Command(BaseCommand):
+    help = "My shiny new management command."
+
+    def add_arguments(self, parser):
+        parser.add_argument('sample', nargs='+')
+
+    def handle(self, *args, **options):
+        raise NotImplementedError()