[Django]Rendering Any Kind of Template by 안기웅 about Django
- loader import get_template # Model View Template (MVT) # Dont Repeat Yourself = DRY def home_page(request): my_title = "Hello there
- format(title=my_title) # django_render_doc = "
{{ title }}
" - css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
{% block head_title %} Replace this value {% endblock %} CFE {{ title }}
{% block content %} Replace this value {% endblock %}