U
    ’Ëáe=  ã                   @   s$   d dl mZ ddlmZ dd„ ZdS )é    )Úappsé   )ÚRequestSitec                 C   s.   t  d¡r"ddlm} |j | ¡S t| ƒS dS )z‘
    Check if contrib.sites is installed and return either the current
    ``Site`` object or a ``RequestSite`` object based on the request.
    zdjango.contrib.sitesr   )ÚSiteN)r   Úis_installedÚmodelsr   ÚobjectsZget_currentr   )Úrequestr   © r
   úT/var/www/html/htmlvenv/lib/python3.8/site-packages/django/contrib/sites/shortcuts.pyÚget_current_site   s    
r   N)Zdjango.appsr   Úrequestsr   r   r
   r
   r
   r   Ú<module>   s   