o
    £Uh­	  ã                   @   s$   d Z ddlmZ G dd„ deƒZdS )z½Core App Configuration

This module contains the Django app configuration for the core application.
The core app provides shared functionality and utilities used across the entire project.
é    )Ú	AppConfigc                   @   s4   e Zd ZdZdZdZdZdd„ Zdd„ Zd	d
„ Z	dS )Ú
CoreConfigz³Configuration for the Core application.
    
    This app contains shared functionality, base models, utilities,
    and common components used throughout the Adtlas project.
    ú	apps.coreZCorezdjango.db.models.BigAutoFieldc                 C   sD   zddl m} ddl m} |  ¡  |  ¡  W dS  ty!   Y dS w )a  Initialize the app when Django starts.
        
        This method is called when the app is ready and can be used to:
        - Import signal handlers
        - Register custom checks
        - Initialize app-specific configurations
        - Set up logging
        é   )Úsignals)ÚchecksN)Ú r   r   Ú_setup_loggingÚ_register_template_tagsÚImportError)Úselfr   r   © r   ú@C:\Users\vibe-look\OneDrive\Desktop\Adtlas\src\apps\core\apps.pyÚready   s   	þzCoreConfig.readyc                 C   s,   ddl }| d¡}|js| |j¡ dS dS )z1Setup application-specific logging configuration.r   Nr   )ÚloggingÚ	getLoggerÚhandlersÚsetLevelÚINFO)r   r   Úloggerr   r   r   r	   0   s
   
ÿzCoreConfig._setup_loggingc              	   C   sp   z-ddl m} ddlm} | ¡ D ]}t||ƒr*z|j d¡ W q ty)   Y qw qW dS  ty7   Y dS w )z*Register custom template tags and filters.r   )Úengines)ÚDjangoTemplatesZ	core_tagsN)	Údjango.templater   Údjango.template.backends.djangor   ÚallÚ
isinstanceÚengineZget_libraryÚ	Exception)r   r   r   r   r   r   r   r
   ;   s   
þýÿþz"CoreConfig._register_template_tagsN)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚverbose_nameÚdefault_auto_fieldr   r	   r
   r   r   r   r   r   
   s    r   N)r!   Údjango.appsr   r   r   r   r   r   Ú<module>   s    