a
    Sicî  ã                   @   sB   d dl mZ d dlmZ d dlmZ eeƒZG dd„ dejƒZdS )é    )Ú	getLogger)Úapps)Úget_distributionc                   @   s,   e Zd ZdZdZdZedd„ ƒZdd„ ZdS )	Ú	AppConfigzdjango.db.models.AutoFieldÚaxesFc                 C   sr   | j r
dS d| _ ddlm} ddlm}m} |jrn|jr>d}n|jrJd}n|j	rVd}nd	}t
 d
tdƒj|¡ dS )zÙ
        Initialize Axes logging and show version information.

        This method is re-entrant and can be called multiple times.
        It displays version information exactly once at application startup.
        NTr   )Úsettings)ÚchecksÚsignalszblocking by username onlyz*blocking by combination of username and IPzblocking by username or IPzblocking by IP onlyzAXES: BEGIN version %s, %szdjango-axes)ÚinitializedZ	axes.confr   r   r   r	   ZAXES_VERBOSEZAXES_ONLY_USER_FAILURESZ(AXES_LOCK_OUT_BY_COMBINATION_USER_AND_IPZAXES_LOCK_OUT_BY_USER_OR_IPÚlogÚinfor   Úversion)Úclsr   r   r	   Úmode© r   úE/var/www/html/django/DPS/env/lib/python3.9/site-packages/axes/apps.pyÚ
initialize   s$    	ýzAppConfig.initializec                 C   s   |   ¡  d S )N)r   )Úselfr   r   r   Úready/   s    zAppConfig.readyN)	Ú__name__Ú
__module__Ú__qualname__Údefault_auto_fieldÚnamer
   Úclassmethodr   r   r   r   r   r   r   	   s   
 r   N)	Úloggingr   Údjangor   Úpkg_resourcesr   r   r   r   r   r   r   r   Ú<module>   s   