o
    
h=                     @   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 )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    r   `/var/www/html/optinet_system/venv/lib/python3.10/site-packages/django/contrib/sites/shortcuts.pyget_current_site   s   
r   N)django.appsr   requestsr   r   r   r   r   r   <module>   s    