
    g                          G d  d      Z y)c                   *    e Zd ZdZd Zd ZddZd Zy)RequestSitez
    A class that shares the primary interface of Site (i.e., it has ``domain``
    and ``name`` attributes) but gets its data from an HttpRequest object
    rather than from a database.

    The save() and delete() methods raise NotImplementedError.
    c                 <    |j                         x| _        | _        y N)get_hostdomainname)selfrequests     u/var/www/python.vincentserveurtest.ovh/public_html/venv/lib/python3.12/site-packages/django/contrib/sites/requests.py__init__zRequestSite.__init__
   s    ")"2"2"44di    c                     | j                   S r   )r   r	   s    r   __str__zRequestSite.__str__   s    {{r   c                     t        d      )NzRequestSite cannot be saved.NotImplementedError)r	   force_insertforce_updates      r   savezRequestSite.save   s    !"@AAr   c                     t        d      )NzRequestSite cannot be deleted.r   r   s    r   deletezRequestSite.delete   s    !"BCCr   N)FF)__name__
__module____qualname____doc__r   r   r   r    r   r   r   r      s    5BDr   r   N)r   r   r   r   <module>r      s   D Dr   