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

Тел: +7 965 3737 888

528

Просмотров

0

Ответов

Previewing Django templates in a browser, without even creating a Django project

<p><strong>preview_template.py</strong> allows you to test a Django template located in the current working directory (first argument). The template is rendered with the given context (second argument, <em>optional</em>), and the result is immediately piped into the browser with the <a href="http://rtomayko.github.io/bcat/">bcat</a> utility.</p>
<p><strong>Usage:</strong></p>
python preview_template.py [template name] [context]

<p><strong>Example:</strong></p>
python preview_template.py template.html "{'username': '&#1034;&#1077;&#1075;&#1086;&#1096;'}"

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