| 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/template/backends/__pycache__/ |
Upload File : |
�
�|�e�
� �T � d dl mZmZ d dlmZ d dlmZ d dlmZ G d� d� � Z dS )� )�ImproperlyConfigured�SuspiciousFileOperation)�get_app_template_dirs)� safe_join)�cached_propertyc �R � e Zd Zd� Zed� � � Zd� Zd� Zed� � � Z d� Z
dS )�
BaseEnginec �R � |� � � }|� d� � | _ t |� d� � � � | _ |� d� � | _ |r5t
d� d� |� � � � � � �dS )zh
Initialize the template engine.
`params` is a dict of configuration settings.
�NAME�DIRS�APP_DIRSzUnknown parameters: {}z, N) �copy�pop�name�list�dirs�app_dirsr �format�join)�self�paramss �?/usr/lib/python3/dist-packages/django/template/backends/base.py�__init__zBaseEngine.__init__ s� � � �������J�J�v�&�&�� �����F�+�+�,�,�� ��
�
�:�.�.��
�� D�&�(�/�/�� � �&�0A�0A�B�B�D� D�
D� D� D� c �Z � t d� | j j � � � � �)NzA{} doesn't support loading templates from installed applications.)r r � __class__�__name__)r s r �app_dirnamezBaseEngine.app_dirname s+ � �"�
�"�F�4�>�#:�;�;�=� =� =r c � � t d� � �)zk
Create and return a template for the given source code.
This method is optional.
z>subclasses of BaseEngine should provide a from_string() method��NotImplementedError)r �
template_codes r �from_stringzBaseEngine.from_string"