ó
;ĎOc           @   s:   d  d l  m Z d  d l m Z d e f d     YZ d S(   i˙˙˙˙(   t   BaseCommand(   t   make_optiont   Commandc           B   s   e  Z e j e d  d d d d d e d d e d d d	 d d
 d d d d d d e d d d d d d d e d d f Z d Z d Z e Z	 d   Z
 RS(   s	   --noinputt   actiont   store_falset   destt   interactivet   defaultt   helps:   Tells Django to NOT prompt the user for input of any kind.s
   --addrportt   storet   addrportt   typet   stringt    s/   port number or ipaddr:port to run the server ons   --ipv6s   -6t
   store_truet   use_ipv6s#   Tells Django to use a IPv6 address.s>   Runs a development server with data from the given fixture(s).s   [fixture ...]c         O   sĚ   d d l  m } d d l m } t | j d   } | j d  } | j d  } | j j d | d |  } | d | i | d 6 d	 | }	 | j j	 }
 | d
 d | d |	 d t
 d | d d |
 d  S(   Ni˙˙˙˙(   t   call_command(   t
   connectiont	   verbosityR   R
   t   autoclobbert   loaddatasg   
Server stopped.
Note that the test database, %r, has not been deleted. You can explore it on your own.t	   runservert   shutdown_messaget   use_reloaderR   t   use_threading(   t   django.core.managementR   t	   django.dbR   t   intt   gett   creationt   create_test_dbt   featurest#   test_db_allows_multiple_connectionst   False(   t   selft   fixture_labelst   optionsR   R   R   R   R
   t   db_nameR   R   (    (    sC   ../Django//lib/python/django/core/management/commands/testserver.pyt   handle   s    
	
(   t   __name__t
   __module__R    t   option_listR   t   TrueR!   R   t   argst   requires_model_validationR&   (    (    (    sC   ../Django//lib/python/django/core/management/commands/testserver.pyR      s   N(   t   django.core.management.baseR    t   optparseR   R   (    (    (    sC   ../Django//lib/python/django/core/management/commands/testserver.pyt   <module>   s   