
    hE                         d dl mZ d Zy)    )appsc                     t        j                  d      r!ddlm} |j                  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   s      a/var/www/html/ranktracker/api/venv/lib/python3.12/site-packages/django/contrib/sites/shortcuts.pyget_current_siter      s9     /0 ||''00)7##    N)django.appsr   r    r   r   <module>r      s    $r   