/usr/share/cagefs-skeleton/usr/local/lib/python3.9/site-packages/django/contrib/sites/__pycache__
a Ӱ�h� � @ s G d d� d�Z dS )c @ s2 e Zd ZdZdd� Zdd� Zddd�Zd d � ZdS ) �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 C s |� � | _| _d S �N)�get_host�domain�name)�self�request� r �G/usr/local/lib/python3.9/site-packages/django/contrib/sites/requests.py�__init__ s zRequestSite.__init__c C s | j S r )r �r r r r �__str__ s zRequestSite.__str__Fc C s t d��d S )NzRequestSite cannot be saved.��NotImplementedError)r Zforce_insertZforce_updater r r �save s zRequestSite.savec C s t d��d S )NzRequestSite cannot be deleted.r r r r r �delete s zRequestSite.deleteN)FF)�__name__� __module__�__qualname__�__doc__r r r r r r r r r s r N)r r r r r �<module> �
.
Edit
..
Edit
__init__.cpython-39.pyc
Edit
admin.cpython-39.pyc
Edit
apps.cpython-39.pyc
Edit
checks.cpython-39.pyc
Edit
management.cpython-39.pyc
Edit
managers.cpython-39.pyc
Edit
middleware.cpython-39.pyc
Edit
models.cpython-39.pyc
Edit
requests.cpython-39.pyc
Edit
shortcuts.cpython-39.pyc
Edit