← Back
Editing: base.cpython-311.pyc
� �|�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"