본문 바로가기

카테고리 없음

2020-06-14 18시 개발자 글 모음 | "JWT, Cookie, XSS, CS" 외 9개 이야기

[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 %}