| 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/urls/__pycache__/ |
Upload File : |
�
�|�e� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZm Z m
Z
mZmZ dd�Z
dd �Z eee
�
� � Z eee �
� � ZdS )
zFunctions for use in URLsconfs.� )�partial)�
import_module)�ImproperlyConfigured� )�LocalePrefixPattern�RegexPattern�RoutePattern�
URLPattern�URLResolverNc �. � d }t | t � � rE | \ }}n@# t $ r1 |rt d� � �t dt | � � z � � �w xY w| }t |t
� � rt
|� � }t |d|� � }t |d|� � }|r|st d� � �|p|}t |t t f� � r:|D ]7}t |dd � � }t |t � � rt d� � ��8|||fS )NzMCannot override the namespace for a dynamic module that provides a namespace.z�Passing a %d-tuple to include() is not supported. Pass a 2-tuple containing the list of patterns and app_name, and provide the namespace argument to include() instead.�urlpatterns�app_namez�Specifying a namespace in include() without providing an app_name is not supported. Set the app_name attribute in the included module, or pass a 2-tuple containing the list of patterns and app_name instead.�patternz:Using i18n_patterns in an included URLconf is not allowed.)
�
isinstance�tuple�
ValueErrorr �len�strr �getattr�listr )�arg� namespacer �urlconf_module�patterns�url_patternr s �2/usr/lib/python3/dist-packages/django/urls/conf.py�includer s{ � ��H��#�u��� � �'*�$�N�H�H���
�
�
��
�*�,�� � � '�G�IL�S���R�� �
�
���� ���.�#�&�&� 7�&�~�6�6���~�}�n�E�E�H��~�z�8�<�<�H��
��
�"�
�
�
�
� �%�X�I� �(�T�5�M�*�*� �#� � �K��k�9�d�;�;�G��'�#6�7�7�
�*�P�� � �
�
�H�i�0�0s � �;Ac � � t |t t f� � r' || d�� � }|\ }}}t |||||�� � S t |� � r || |d�� � }t ||||� � S t
d� � �)NF)�is_endpoint)r r T)�namer zAview must be a callable or a list/tuple in the case of include().)r r r r �callabler
� TypeError) �route�view�kwargsr �Patternr r r r s r �_pathr'