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