ó
i4Vdc           @  sp   d  d l  m Z d  d l m Z d  d l m Z d  d l m Z d  d l m	 Z	 m
 Z
 d e	 f d     YZ d S(	   iÿÿÿÿ(   t   unicode_literals(   t   apps(   t   checks(   t   registry(   t   BaseCommandt   CommandErrort   Commandc           B  s&   e  Z d  Z e Z d   Z d   Z RS(   u8   Checks the entire Django project for potential problems.c      	   C  s}   | j  d d d d d | j  d d d d	 d
 d d d | j  d d d d
 d d d | j  d d d d
 d d d d  S(   Nu   argst   metavaru	   app_labelt   nargsu   *u   --tagu   -tt   actionu   appendt   destu   tagst   helpu'   Run only checks labeled with given tag.u   --list-tagsu
   store_trueu	   list_tagsu   List available tags.u   --deployu   deployu   Check deployment settings.(   t   add_argument(   t   selft   parser(    (    ss   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/core/management/commands/check.pyt   add_arguments   s    c      	     sø   | d   | j  d  rE |  j j d j t t j       d  S| rp g  | D] } t j |  ^ qR } n d  } | j  d  } | rÒ y  t
   f d   | D  } Wn t k
 rŸ qÒ Xt d |   n  |  j d | d | d	 t d
    d  S(   Nu   deployu	   list_tagsu   
u   tagsc         3  s'   |  ] } t  j |    s | Vq d  S(   N(   R   t
   tag_exists(   t   .0t   tag(   t   include_deployment_checks(    ss   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/core/management/commands/check.pys	   <genexpr>'   s    u+   There is no system check with the "%s" tag.t   app_configst   tagst   display_num_errorsR   (   t   gett   stdoutt   writet   joint   sortedR   t   tags_availableR   t   get_app_configt   Nonet   nextt   StopIterationR   t   checkt   True(   R   t
   app_labelst   optionst	   app_labelR   R   t   invalid_tag(    (   R   ss   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/core/management/commands/check.pyt   handle   s(    
(%	(   t   __name__t
   __module__R   t   Falset   requires_system_checksR   R'   (    (    (    ss   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/core/management/commands/check.pyR   
   s   		N(   t
   __future__R    t   django.appsR   t   django.coreR   t   django.core.checks.registryR   t   django.core.management.baseR   R   R   (    (    (    ss   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/core/management/commands/check.pyt   <module>   s
   