
v^                 @   s:   d  d l  m Z d d l m Z Gd d   d e  Z d S)    )TemplateCommand   )get_random_secret_keyc                   s.   e  Z d  Z d Z d Z   f d d   Z   S)CommandzCreates a Django project directory structure for the given project name in the current directory or optionally in the given directory.z You must provide a project name.c                sH   | j  d  } | j  d  } t   | d <t   j d | | |  d  S)Nname	directoryZ
secret_keyproject)popr   superhandle)selfoptionsproject_nametarget)	__class__ N/tmp/pip-build-8lau8j11/django/django/core/management/commands/startproject.pyr      s    zCommand.handle)__name__
__module____qualname__helpZmissing_args_messager   r   r   )r   r   r      s   r   N)Z django.core.management.templatesr   utilsr   r   r   r   r   r   <module>   s   