← Back
Editing: config.cpython-311.pyc
� �|�e�3 � � � d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dl m Z d dlmZm Z dZdZ G d � d � � ZdS )� N)� import_module)�ImproperlyConfigured)�RemovedInDjango41Warning)�cached_property)� import_string�module_has_submodule�apps�modelsc � � e Zd ZdZd� Zd� Zed� � � Zed� � � Z d� Z ed� � � Zdd �Z dd�Zd� Zd � ZdS )� AppConfigz>Class representing a Django application and its configuration.c � � || _ || _ d | _ t | d� � s |� d� � d | _ | j � � � st d| j z � � �t | d� � s| j � � � | _ t | d� � s| � |� � | _ d | _ d | _ d S )N�label�.� z4The app label '%s' is not a valid Python identifier.�verbose_name�path)�name�moduler �hasattr� rpartitionr �isidentifierr �titler �_path_from_moduler � models_moduler )�self�app_name� app_modules �4/usr/lib/python3/dist-packages/django/apps/config.py�__init__zAppConfig.__init__ s� � ��� � !��� �� � �t�W�%�%� 5�!�,�,�S�1�1�!�4�D�J��z�&�&�(�(� �&�F���S�� � � �t�^�,�,� 3� $� � 0� 0� 2� 2�D�� �t�V�$�$� ;��.�.�z�:�:�D�I� "��� ����� c �2 � d| j j �d| j �d�S )N�<z: �>)� __class__�__name__r �r s r �__repr__zAppConfig.__repr__<