
    g=                     "    d dl mZ ddlmZ d Zy)    )apps   )RequestSitec                     t        j                  d      r!ddlm} |j                  j                  |       S t        |       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   )Site)r   is_installedmodelsr   objectsget_currentr   )requestr   s     v/var/www/python.vincentserveurtest.ovh/public_html/venv/lib/python3.12/site-packages/django/contrib/sites/shortcuts.pyget_current_siter      s6     /0 ||''007##    N)django.appsr   requestsr   r    r   r   <module>r      s     !$r   