파이썬 django 변수1 파이썬 django template variable 파이썬 django template variable django 템플릿에서는 {{}}개의 괄호 안에 변수를 넣어 렌더링할 수 있다: template.html Hello {{ firstname }}, how are you? In views.py you can see how to create the variable. In template.html you can see how to use the variable. view.py from django.http import HttpResponse from django.template import loader def testing(request): template = loader.get_template('template.html') context = { 'first.. 2024. 3. 2. 이전 1 다음