python3 -m venv /path/to/new/virtual/environment
source venv/bin/activate
<!-- Inline variable --> | |
{{ variable_name }} | |
<!-- Loop --> | |
{% with messages = get_flashed_messages(with_categories=True) %} | |
{%- if messages %} | |
{% for category, message in messages %} | |
<p>{{ message }}</p> | |
{% endfor %} | |
{% endif -%} |
In a big project, some threads are there to do some background task such as sending data, performing periodic garbage collection etc. It can be done by non-daemon thread. But if non-daemon thread is used, the main thread has to keep track of them manually. However, using daemon thread the main thread can completely forget about this task and this task will either complete or be killed when main thread exits.