+
    Sj1                     X    ^ RI Ht ^ RIHt ^ RIHt ^ RIHt ^RIH	t	  ! R R]4      t
R# )	    )settings)ImproperlyConfigured)HttpResponse)MiddlewareMixin)get_view_namec                   *   a  ] tR t^	t o RtR tRtV tR# )XViewMiddlewarez1
Add an X-View header to internal HEAD requests.
c                ~   \        VR4      '       g   \        R4      hVP                  R8X  d   VP                  P	                  R4      \
        P                  9   g9   VP                  P                  '       dC   VP                  P                  '       d%   \        4       p\        V4      VP                  R&   V# R# R# R# )z
If the request method is HEAD and either the IP is internal or the
user is a logged-in staff member, return a response with an x-view
header indicating the view function. This is used to lookup the view
function for an arbitrary page.
userzThe XView middleware requires authentication middleware to be installed. Edit your MIDDLEWARE setting to insert 'django.contrib.auth.middleware.AuthenticationMiddleware'.HEADREMOTE_ADDRzX-ViewN)hasattrr   methodMETAgetr   INTERNAL_IPSr   	is_activeis_staffr   r   headers)selfrequest	view_func	view_argsview_kwargsresponses   &&&&& X/var/www/idalgo/venv/lib/python3.14/site-packages/django/contrib/admindocs/middleware.pyprocess_viewXViewMiddleware.process_view   s     w''&M 
 >>V#LL]+x/D/DD&&&7<<+@+@+@#~H)6y)AHX&O	 ,A& $     N)__name__
__module____qualname____firstlineno____doc__r   __static_attributes____classdictcell__)__classdict__s   @r   r	   r	   	   s      r   r	   N)django.confr   django.core.exceptionsr   django.httpr   django.utils.deprecationr   utilsr   r	   r    r   r   <module>r.      s       7 $ 4  o r   