小编use*_*624的帖子

未闭合的标签“块”。寻找其中之一: 端块

<!--this is my base.html file -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Jumbotron Template for Bootstrap</title>
</head>
<body>
{% block content %}  {% endblock %}
<p>&copy; Company 2014</p>
</body>
</html> 


<!-- this is my signup.html file-->
{% extends "base.html" %}
{% block title %}

    <form method = 'POST' action = ''>{% csrf_token %}

    <label for="your_name">Your name: </label>
    {{form.as_p}}
    <input type = 'submit'>
    </form>
{ % endblock % }
Run Code Online (Sandbox Code Playgroud)

我只是收到错误

“未闭合的标签‘block’。寻找以下之一:endblock”

请帮忙。

html python django django-templates

2
推荐指数
1
解决办法
5919
查看次数

标签 统计

django ×1

django-templates ×1

html ×1

python ×1