Задать вопрос

Тел: +7 965 3737 888

452

Просмотров

0

Ответов

Management command which helps to find temlate files

<p>If you need to customize many default templates from installed apps, this management command will help you to find those templates and to copy them to desired location.
</p>
<p>Place this code at:
</p>
management/commands/templates.py
<p>To see a list of installed templates, run:
</p>
python manage.py templates
<p>To copy all templates to specified location:
</p>
python manage.py templates --copy-to ./templates
<p>To copy templates from specified applications only:
</p>
python manage.py templates admin auth --copy-to ./templates

Вопрос полезен? Да0/Нет0
file_5136.py(3.2Кб)
None