全文検索:
- 2023.06.03 Django アプリ追加
- ass View(TemplateView): template_name = "test.html" def get(self, request): context = {... 作成したアプリフォルダの下に、templatesフォルダを作成し、view.pyで記述したtest.htmlを用意 <code|testapp/templates/test.html> Hello World! <br> {% if action %} action = {{ action }} <h1> {{