HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/django/core/management/commands/__pycache__/check.cpython-310.pyc
o

�a�	�@sHddlmZddlmZddlmZddlmZmZGdd�de�Z	dS)�)�apps)�checks)�registry)�BaseCommand�CommandErrorc@s$eZdZdZgZdd�Zdd�ZdS)�Commandz8Checks the entire Django project for potential problems.cCsp|jdddd�|jddddd	d
�|jddd
d�|jdddd�|jddgd�dd�|jddddd
�dS)N�args�	app_label�*)�metavar�nargsz--tagz-t�append�tagsz'Run only checks labeled with given tag.)�action�dest�helpz--list-tags�
store_truezList available tags.)rrz--deployzCheck deployment settings.z--fail-level�ERROR)�CRITICALr�WARNING�INFO�DEBUGz[Message level that will cause the command to exit with a non-zero status. Default is ERROR.)�default�choicesrz
--database�	databasesz2Run database related checks against these aliases.)�add_argument)�self�parser�r�G/usr/lib/python3/dist-packages/django/core/management/commands/check.py�
add_argumentss.����	
�zCommand.add_argumentsc	s�|d�|dr|j�d�tt������dS|r"dd�|D�}nd}|d}|rGz
t�fdd�|D��}Wn	ty@Ynwtd	|��|j	||d
�t
t|d�|dd
�dS)N�deploy�	list_tags�
cSsg|]}t�|��qSr)r�get_app_config)�.0r	rrr�
<listcomp>/sz"Command.handle.<locals>.<listcomp>rc3s �|]}t�|��s|VqdS)N)r�
tag_exists)r%�tag��include_deployment_checksrr�	<genexpr>6s��
�z!Command.handle.<locals>.<genexpr>z+There is no system check with the "%s" tag.T�
fail_levelr)�app_configsr�display_num_errorsr*r,r)�stdout�write�join�sortedr�tags_available�next�
StopIterationr�check�getattrr)r�
app_labels�optionsr-r�invalid_tagrr)r�handle(s2��
�zCommand.handleN)�__name__�
__module__�__qualname__r�requires_system_checksr r;rrrrrs
rN)
�django.appsr�django.corer�django.core.checks.registryr�django.core.management.baserrrrrrr�<module>s