î
ªÍ XŠ  ã               @   sJ   d  d l  m Z d  d l m Z d  d l m Z Gd 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   sP   t  t j ƒ } y | j j ƒ  Wn) t k
 rK |  j j d t j ƒ Yn Xd  S)Nz?Session engine '%s' doesn't support clearing expired sessions.
)r   r   ZSESSION_ENGINEZSessionStoreZclear_expiredÚNotImplementedErrorÚstderrÚwrite)ÚselfÚoptionsZengine© r   úg/home/ubuntu/projects/ifolica/build/django/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   Zdjango.confr   Zdjango.core.management.baser   r   r   r   r   r   Ú<module>   s   