ó
®â0_c           @   sJ   d  d l  m Z d  d l m Z d  d l m Z d e f d „  ƒ  YZ d S(   iÿÿÿÿ(   t   call_command(   t   BaseCommand(   t
   connectiont   Commandc           B   s&   e  Z d  Z e Z d „  Z d „  Z RS(   s>   Runs a development server with data from the given fixture(s).c         C   sŒ   | j  d d d d d d d ƒ| j  d d	 d
 d d d d t d d ƒ| j  d d d d d ƒ| j  d d d
 d d d d t d d ƒd  S(   Nt   argst   metavart   fixturet   nargst   *t   helps6   Path(s) to fixtures to load before running the server.s	   --noinputs
   --no-inputt   actiont   store_falset   destt   interactivet   defaults:   Tells Django to NOT prompt the user for input of any kind.s
   --addrportt    s0   Port number or ipaddr:port to run the server on.s   --ipv6s   -6t
   store_truet   use_ipv6s$   Tells Django to use an IPv6 address.(   t   add_argumentt   Truet   False(   t   selft   parser(    (    sL   /tmp/pip-unpacked-wheel-BAJOf3/django/core/management/commands/testserver.pyt   add_arguments   s    c         O   s—   | d } | d } t  j j d | d | d t ƒ } t d | i | d 6Ž d | } t  j j } t d d | d d	 | d
 t d | d d | ƒd  S(   Nt	   verbosityR   t   autoclobbert	   serializet   loaddatasg   
Server stopped.
Note that the test database, %r, has not been deleted. You can explore it on your own.t	   runservert   addrportt   shutdown_messaget   use_reloaderR   t   use_threading(   R   t   creationt   create_test_dbR   R    t   featurest#   test_db_allows_multiple_connections(   R   t   fixture_labelst   optionsR   R   t   db_nameR   R    (    (    sL   /tmp/pip-unpacked-wheel-BAJOf3/django/core/management/commands/testserver.pyt   handle   s    

"

(   t   __name__t
   __module__R	   R   t   requires_system_checksR   R(   (    (    (    sL   /tmp/pip-unpacked-wheel-BAJOf3/django/core/management/commands/testserver.pyR      s   	N(   t   django.core.managementR    t   django.core.management.baseR   t	   django.dbR   R   (    (    (    sL   /tmp/pip-unpacked-wheel-BAJOf3/django/core/management/commands/testserver.pyt   <module>   s   