| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/django/views/generic/__pycache__/ |
Upload File : |
�
48zj� � � � d dl Z d dlmZ d dlmZ d dlmZmZmZm Z m
Z
d dlmZ d dl
mZ d dlmZ d dlmZ e j d � � Z G d
� d� � Z G d� d
� � Z G d� d� � Z G d� deee� � Z G d� de� � ZdS )� N)�update_wrapper)�ImproperlyConfigured)�HttpResponse�HttpResponseGone�HttpResponseNotAllowed�HttpResponsePermanentRedirect�HttpResponseRedirect)�TemplateResponse)�reverse)�classonlymethod)�log_responsezdjango.requestc � � e Zd ZdZdZd� ZdS )�ContextMixinz
A default context mixin that passes the keyword arguments received by
get_context_data() as the template context.
Nc �t � |� d| � � | j �|� | j � � |S )N�view)�
setdefault�
extra_context�update)�self�kwargss �;/usr/lib/python3/dist-packages/django/views/generic/base.py�get_context_datazContextMixin.get_context_data s; � ����&�$�'�'�'���)��M�M�$�,�-�-�-��
� )�__name__�
__module__�__qualname__�__doc__r r � r r r r s4 � � � � � �� � �M�� � � � r r c �T � e Zd ZdZg d�Zd� Zed� � � Zd� Zd� Z d� Z
d� Zd � Zd
S )�Viewz}
Intentionally simple parent class for all views. Only implements
dispatch-by-method and simple sanity checking.
)�get�post�put�patch�delete�head�options�tracec �\ � |� � � D ]\ }}t | ||� � �dS )z|
Constructor. Called in the URLconf; can contain helpful extra
keyword arguments, and other things.
N)�items�setattr)r r �key�values r �__init__z
View.__init__'