
 X                 @   sJ   d  d l  m Z d  d l m Z d  d l m Z Gd d   d e  Z d S)    )import_module)CommandError)TemplateCommandc                   s.   e  Z d  Z d Z d Z   f d d   Z   S)Commandz~Creates a Django app directory structure for the given app name in the current directory or optionally in the given directory.z%You must provide an application name.c                s   | j  d  | j  d  } } |  j | d  y t |  Wn t k
 rQ Yn Xt d |   t t |   j d | | |  d  S)Nname	directoryZappzs%r conflicts with the name of an existing Python module and cannot be used as an app name. Please try another name.)popZvalidate_namer   ImportErrorr   superr   handle)selfoptionsZapp_nametarget)	__class__ V/home/ubuntu/projects/ifolica/build/django/django/core/management/commands/startapp.pyr      s    
zCommand.handle)__name__
__module____qualname__helpZmissing_args_messager   r   r   )r   r   r      s   r   N)	importlibr   Zdjango.core.management.baser   Z django.core.management.templatesr   r   r   r   r   r   <module>   s   