File: //usr/local/CyberPanel/lib64/python3.10/site-packages/django/__pycache__/shortcuts.cpython-310.pyc
o
��h� � @ s� d Z ddlmZmZmZmZ ddlmZ ddlm Z m
Z
ddlmZ ddd�Z
d d
�dd�Zd
d� Zdd� Zdd� Zdd� ZdS )z�
This module collects helper functions and classes that "span" multiple levels
of MVC. In other words, these functions/classes introduce controlled coupling
for convenience's sake.
� )�Http404�HttpResponse�HttpResponsePermanentRedirect�HttpResponseRedirect)�loader)�NoReverseMatch�reverse)�PromiseNc C s t j||| |d�}t|||�S )z�
Return an HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
)�using)r �render_to_stringr )�request�
template_name�context�content_type�statusr
�content� r �F/usr/local/CyberPanel/lib/python3.10/site-packages/django/shortcuts.py�render s r F)� permanentc O s&