메인, 1, 2 페이지가 3 페이지 있습니다. 나는 메인 페이지를 방문 할 때 페이지 1과 2를 볼 필요가있다.Django 템플릿을 만드는 방법
HTML :
main.html
{% extends 'base.html' %}
{% load staticfiles %}
{% load my_tag %}
{% block title %}
<title>Main TAB</title>
{% endblock %}
{% block body %}
<div>
{% include ‘test/one/’ %}
</div>
<div class="container">
{{name}}
</div>
<script type="text/javascript" src="{% static "js/testquery.js"%}">
</script>
{% endblock %}
one.html
<div class="container">
{{ name }}
</div>
two.html
TemplateSyntaxError at /taskmaster/Test/Main/
Could not parse the remainder: '‘test/one.html’' from '‘test/one.html’'
Request Method: GET
Request URL: http://localhost:8000/taskmaster/Test/Main/
Django Version: 2.0
Exception Type: TemplateSyntaxError
Exception Value:
Could not parse the remainder: '‘test/one.html’' from '‘test/one.html’'
Exception Location: C:\Program Files (x86)\Python36-32\lib\site-packages\django\template\base.py in __init__, line 668
Python Executable: C:\Program Files (x86)\Python36-32\python.exe
Python Version: 3.6.1
Python Path:
['C:\\Users\\i326707\\PycharmProjects\\opsboard',
'C:\\Program Files (x86)\\Python36-32\\python36.zip',
'C:\\Program Files (x86)\\Python36-32\\DLLs',
'C:\\Program Files (x86)\\Python36-32\\lib',
'C:\\Program Files (x86)\\Python36-32',
'C:\\Program Files (x86)\\Python36-32\\lib\\site-packages',
'C:\\Users\\i326707\\PycharmProjects\\opsboard\\commonpage',
'C:\\Users\\i326707\\PycharmProjects\\opsboard\\taskmaster']
Server time: Sat, 23 Dec 2017 08:10:28 +0000