o
    uvXjŠ  ã                   @   s8   d dl mZ d dlmZ d dlmZ G dd„ deƒZdS )é    )Úimport_module)Úsettings)ÚBaseCommandc                   @   s   e Zd ZdZdd„ ZdS )ÚCommandzqCan be run as a cronjob or directly to clean out expired sessions (only with the database backend at the moment).c                 K   sB   t tjƒ}z|j ¡  W d S  ty    | j dtj ¡ Y d S w )Nz?Session engine '%s' doesn't support clearing expired sessions.
)r   r   ÚSESSION_ENGINEÚSessionStoreÚclear_expiredÚNotImplementedErrorÚstderrÚwrite)ÚselfÚoptionsÚengine© r   úv/var/www/html/myproject/venv/lib/python3.10/site-packages/django/contrib/sessions/management/commands/clearsessions.pyÚhandle   s   
ÿÿzCommand.handleN)Ú__name__Ú
__module__Ú__qualname__Úhelpr   r   r   r   r   r      s    ÿr   N)Ú	importlibr   Údjango.confr   Údjango.core.management.baser   r   r   r   r   r   Ú<module>   s    