django/core/management/commands/startapp.py
raw| 1 | from django.core.management.templates import TemplateCommand |
| 2 | |
| 3 | |
| 4 | class Command(TemplateCommand): |
| 5 | help = ( |
| 6 | "Creates a Django app directory structure for the given app name in " |
| 7 | "the current directory or optionally in the given directory." |
| 8 | ) |
| 9 | missing_args_message = "You must provide an application name." |
| 10 | |
| 11 | def handle(self, **options): |
| 12 | app_name = options.pop("name") |
| 13 | target = options.pop("directory") |
| 14 | super().handle("app", app_name, target, **options) |