o
    MfE                     @   s   d dl mZ dd ZdS )    )appsc                 C   s6   t drddlm} |j| S ddlm} || 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.sites   )Site)RequestSite)r   is_installedmodelsr   objectsget_currentrequestsr   )requestr   r    r   `/var/www/html/analyze/labelStudio/lib/python3.10/site-packages/django/contrib/sites/shortcuts.pyget_current_site   s
   
r   N)django.appsr   r   r   r   r   r   <module>   s    