File manager - Edit - /usr/local/CyberPanel/lib/python3.10/site-packages/django/urls/__pycache__/conf.cpython-310.pyc
Back
o �ha � @ st d Z ddlmZ ddlmZ ddlmZ ddlmZm Z m Z mZmZ d dd �Z dd d�Zeee d�Zeee d�ZdS )zFunctions for use in URLsconfs.� )�partial)� import_module)�ImproperlyConfigured� )�LocalePrefixPattern�RegexPattern�RoutePattern� URLPattern�URLResolverNc C s� d }t | t�r#z| \}}W n ty" |rtd��tdt| � ��w | }t |t�r.t|�}t|d|�}t|d|�}|rB|sBtd��|pE|}t |ttf�ra|D ]}t|dd �}t |t �r`td��qO|||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 � r �F/usr/local/CyberPanel/lib/python3.10/site-packages/django/urls/conf.py�include sD ���� � �� r c C s� ddl m} |d urt|t�std|jj� d���t|ttf�r4|| dd�}|\}}} t ||||| d�S t |�rF|| |dd �}t||||�S t||�rZ|jj} td | � d| � d���td ��)Nr )�Viewz(kwargs argument must be a dict, but got �.F)�is_endpoint)r r T)�namer zview must be a callable, pass z.as_view(), not z().zAview must be a callable or a list/tuple in the case of include().)�django.viewsr r �dict� TypeError� __class__�__name__r r r �callabler )�route�view�kwargsr �Patternr r r r r � view_cls_namer r r �_path= s8 � � ���r, )r* )N)NNN)�__doc__� functoolsr � importlibr �django.core.exceptionsr � resolversr r r r r r r, �path�re_pathr r r r �<module> s -!
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings