
    Hwg                     B    d dl mZ d dlmZ d dlmZmZ  G d de      Zy)    )import_module)settings)BaseCommandCommandErrorc                       e Zd ZdZd Zy)Commandz_Can be run as a cronjob or directly to clean out expired sessions when the backend supports it.c                     t        t        j                        }	 |j                  j	                          y # t
        $ r t        dt        j                  z        w xY w)Nz>Session engine '%s' doesn't support clearing expired sessions.)r   r   SESSION_ENGINESessionStoreclear_expiredNotImplementedErrorr   )selfoptionsengines      p/var/www/horilla/myenv/lib/python3.12/site-packages/django/contrib/sessions/management/commands/clearsessions.pyhandlezCommand.handle   sX    x667	--/" 	&556 	s	   6 &AN)__name__
__module____qualname__helpr        r   r   r      s    	( 	
r   r   N)	importlibr   django.confr   django.core.management.baser   r   r   r   r   r   <module>r      s    #   Ak r   