Ken*_*ows 0 django django-templates
这是填充我的页面的错误消息,附带代码问题:
请求方法:GET
请求URL: http:// localhost:8000/home
Django版本:1.3.1
异常类型:TemplateSyntaxError
例外值:无效的块标记:'endblock',预期'endif'
码:
{% extends "profile/base_with_classes.html" %}
{% block username %}
{% if user == None %}
Nobody
{% else %}
{% if user.is_authenticated %}
{{ user.username }}
{% else %}
Unauthenticated User
{% endif %}
(% endif %}
{% endblock username %} <==== Issue is here
Run Code Online (Sandbox Code Playgroud)
我不明白.这是模板的顶部.
归档时间: |
|
查看次数: |
1886 次 |
最近记录: |