expected token ',', got 'base'

来源:5-1 .前台布局搭建

szuxxy

2017-08-07

http://szimg.mukewang.com/59873dcc0001e1c314430567.jpg

如上图,卡了会,不知道怎么解决,应该是个分分钟的问题吧,对于老师来说。

写回答

2回答

rustgopy

2017-08-07

同学,你好,{% endblock %}后面只有一个花括号,而不是两个!

0
8
szuxxy
GOOD NIGHT
2017-08-07
共8条回复

szuxxy

提问者

2017-08-07

<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1 , user-scalable=no">
    <title>微电影</title>
    <link rel="shortcut icon" href="{{url_for('static')}},filename='base/images/logo.png'">
    <link rel="stylesheet" href="{{url_for('static')}},filename='base/css/bootstrap.min.css'">
    <link rel="stylesheet" href="{{url_for('static)}},filename='base/css/bootstrap-movie.css'">
    <link rel="stylesheet" href="{{url_for('static)}},filename='base/css/animate.css'">
    <style>
 .navbar-brand>img {
            display: inline;
 }

    </style>
    <style>
 .media{
            padding:3px;
 border:1px solid #ccc
 }

    </style>
</head>

<body>
<!--导航-->
<nav class="navbar navbar-default navbar-fixed-top">
    <div class="container">
 <!--小屏幕导航按钮和logo-->
 <div class="navbar-header">
            <button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a href="index.html" class="navbar-brand" style="width:250px;">
                <img src="{{url_for('static')}},filename='base/images/logo.png'" style="height:30px;">&nbsp;微电影
            </a>
        </div>
 <!--小屏幕导航按钮和logo-->
        <!--导航-->
 <div class="navbar-collapse collapse">
            <form class="navbar-form navbar-left" role="search" style="margin-top:18px;">
                <div class="form-group input-group">
                    <input type="text" class="form-control" placeholder="请输入电影名!">
                    <span class="input-group-btn">
                        <a class="btn btn-default" href="search.html"><span class="glyphicon glyphicon-search"></span>&nbsp;搜索</a>
                    </span>
                </div>
            </form>
            <ul class="nav navbar-nav navbar-right">
                <li>
                    <a class="curlink" href="index.html"><span class="glyphicon glyphicon-film"></span>&nbsp;电影</a>
                </li>
                <li>
                    <a class="curlink" href="login.html"><span class="glyphicon glyphicon-log-in"></span>&nbsp;登录</a>
                </li>
                <li>
                    <a class="curlink" href="register.html"><span class="glyphicon glyphicon-plus"></span>&nbsp;注册</a>
                </li>
                <li>
                    <a class="curlink" href="logout.html"><span class="glyphicon glyphicon-log-out"></span>&nbsp;退出</a>
                </li>
                <li>
                    <a class="curlink" href="user.html"><span class="glyphicon glyphicon-user"></span>&nbsp;会员</a>
                </li>
            </ul>
        </div>
 <!--导航-->

 </div>
</nav>
<!--导航-->
<!--内容-->
<div class="container" style="margin-top:76px">
 {% block content%}{% endblock %}
</div>
<!--内容-->
<!--底部-->
<footer>
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <p>
 ©&nbsp;2017&nbsp;flaskmovie.dumovie.com&nbsp;深ICP备 13046642号-2
                </p>
            </div>
        </div>
    </div>
</footer>
<!--底部-->
<script src="{{url_for('static')}},filename='base/js/jquery.min.js'"></script>
<script src="{{url_for('static')}},filename='base/js/bootstrap.min.js'"></script>
<script src="{{url_for('static')}},filename='base/js/jquery.singlePageNav.min.js'"></script>
<script src="{{url_for('static')}},filename='base/js/wow.min.js'"></script>
<script src="{{url_for('static')}},filename='lazyload/jquery.lazyload.min.js'"></script>
<script src="{{url_for('static')}},filename=//cdn.bootcss.com/holder/2.9.4/holder.min.js"></script>
<script>
 $(function() {
        new WOW().init();
 })

</script>
<script>
 $(document).ready(function() {
        $("img.lazy").lazyload({
            effect: "fadeIn"
 });
 });

</script>
</body>
</html>
</title>
</head>
<body>

</body>
</html>


0
0

Python Flask 构建微电影视频网站

Python 最好用轻量级框架,让你轻松胜任 Python Web 工程师

683 学习 · 663 问题

查看课程