소스 검색

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()