| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/django/core/checks/__pycache__/ |
Upload File : |
�
�|�e� � �� � d dl mZ d dlmZ ddlmZmZmZmZ eej � � d� � � Z
d� Z eej � � d� � � Zdd �Z
d
� Z eej � � d� � � Zd� Zd
S )� )�Counter)�settings� )�Error�Tags�Warning�registerc �p � t t dd � � rddlm} |� � }t |� � S g S )N�ROOT_URLCONFr ��get_resolver)�getattrr �django.urlsr
�check_resolver)�app_configs�kwargsr
�resolvers �9/usr/lib/python3/dist-packages/django/core/checks/urls.py�check_url_configr sF � ��x���.�.� (�,�,�,�,�,�,��<�>�>���h�'�'�'�
�I� c �~ � t | dd� � }|�
|� � S t | d� � st | � � S g S )z)
Recursively check the resolver.
�checkN�resolve)r �hasattr�get_warning_for_invalid_pattern)r �check_methods r r r sL � � �8�W�d�3�3�L����|�~�~��
�X�y�
)�
)� �.�x�8�8�8�� r c �J � t t dd� � sg S ddlm} |� � }t |� � }t |� � }d� |� � � D � � }g }|D ]9}|� t d� |� � d�� � � � �:|S ) zD
Warn if URL namespaces used in applications aren't unique.
r Nr r c �$ � g | ]
\ }}|d k �|��S )r � )�.0�n�counts r �
<listcomp>z/check_url_namespaces_unique.<locals>.<listcomp>* s! � �L�L�L�8�1�e�%�!�)�)�Q�)�)�)r zZURL namespace '{}' isn't unique. You may not be able to reverse all URLs in this namespacez urls.W005��id)
r r r r
�_load_all_namespacesr �items�appendr �format) r r r
r �all_namespaces�counter�non_unique_namespaces�errors� namespaces r �check_url_namespaces_uniquer/ s� � �
�8�^�T�2�2� �� �(�(�(�(�(�(��|�~�~�H�)�(�3�3�N��n�%�%�G�L�L�w�}�}���L�L�L��
�F�*� � � ��
�
�g�
)�)/�� �):�):��
�
�
� � � � �
�Mr r c �� �� t | dg � � }�fd�|D � � }|D ]@}t |dd� � }�}|�||fz
}|� t ||� � � � �A|S )z<
Recursively load all namespaces from URL patterns.
�url_patternsc �n �� g | ]1}t |d d� � �d� �|j fz � � ��2S )r. N�:)r �joinr. )r �url�parentss �r r# z(_load_all_namespaces.<locals>.<listcomp>: sK �� � � � �14��3��T�*�*�6� ����C�M�+�+�,�,�6�6�6r r. N)r �extendr&