| 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 : /lib/python3/dist-packages/django/core/management/__pycache__/ |
Upload File : |
�
�|�eU5 � �� � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dl m
Z
d dlZd dlm
Z
d dlmZmZ d dlmZ d dlmZmZ d dlmZ d d lmZ G d
� de� � ZdS )� N)�
import_module)�urlretrieve)�settings)�BaseCommand�CommandError)�handle_extensions)�Context�Engine)�archive)�get_docs_versionc �\ � e Zd ZdZg Zg d�ZdZd� Zdd�Zd� Z dd �Z
d
� Zd� Zd� Z
d
� Zd� ZdS )�TemplateCommanda�
Copy either a Django application layout template or a Django project
layout template into the specified directory.
:param style: A color style object (see django.core.management.color).
:param app_or_project: The string 'app' or 'project'.
:param name: The name of the application or project.
:param directory: The directory to which the template should be copied.
:param options: The additional variables passed to project or app templates
)�http�https�ftp))z.py-tplz.pyc � � |� dd�� � |� ddd�� � |� dd �� � |� d
ddd
dgd�� � |� dddd
g d�� � d S )N�namez#Name of the application or project.)�help� directory�?zOptional destination directory)�nargsr z
--templatez*The path or URL to load the template from.z--extensionz-e�
extensions�append�pyztThe file extension(s) to render (default: "py"). Separate multiple extensions with commas, or use -e multiple times.)�dest�action�defaultr z--namez-n�filesz_The file name(s) to render. Separate multiple file names with commas, or use -n multiple times.)�add_argument)�self�parsers �B/usr/lib/python3/dist-packages/django/core/management/templates.py�
add_argumentszTemplateCommand.add_arguments( s� � ����F�)N��O�O�O����K�s�9Y��Z�Z�Z����L�/[��\�\�\�����4�l��d�V�&� �
�
�
� ����d���R�:� �
�
�
�
�
� Nc
�T
� || _ |dk rdnd| _ g | _ |d | _ | � |� � |��t
j � t j � � |� � } t j |� � n�# t $ r t d|z � � �t $ r}t |� � �d }~ww xY w|dk r3| � t
j �
|� � d� � t
j � t
j � |� � � � }t
j � |� � st d|z � � �t# t% |d � � � � }g }|d D ]9} |� t) d
� | � d� � � � � � �:| j dk rf| j � d
|�dd� |� � ��� � | j � d
|�dd� |� � ��� � d|z }
d|z }d|z }d|z }
d� d� |� � � D � � � � }t3 i |�|
||||
|dt5 � � dt6 j i�d�� � }t: j s&t; j � � t7 j � � | �! |d |� � }tE |� � dz }t j# |� � D �]�\ }}}||d � }|�$ |
|� � }|r6t
j � ||� � }t j |d�� � |d d � D ]2}|�% d� � s|d k r|�&