12、ripUrl.html、404.html、500.html

ripUrl.html

<!DOCTYPE html>
{% load staticfiles %}
<html lang="en">
<head>
    <meta charset="UTF-8">
<!--    <title>身份证号生成器</title>-->
    <link rel="stylesheet" href="{% static 'css/plugins/bootstrap-3.3.7-dist/css/bootstrap.min.css' %}">
    <link rel="stylesheet" href="{% static 'css/css1/dsb.css' %}">

    <script type="text/javascript">
    function test(){

        var i = "执行完成";

        alert(i);

    }
    </script>
</head>
<style type="text/css">
     body {
       padding-top: 10px;
     }
    .main {
       margin-left: 20px;
    }
</style>

<body>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <h2 class="sub-header">添加服务</h2>
            <form method="post" action="/create_rip_url/">

                <br>
                <label> URL:</label>
                <button class="btn btn-primary btn-sm" onclick = "test();">点我执行</button>
                <br/>

            </form>
        </div>
    </div>
</div>
</body>

</html>

404.html

<!DOCTYPE HTML>
<html>
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="none"/>
    <title>404 Not Found</title>
    <style>
*{font-family:"Microsoft Yahei";margin:0;font-weight:lighter;text-decoration:none;text-align:center;line-height:2.2em;}
html,body{height:100%;}
h1{font-size:100px;line-height:1em;}
table{width:100%;height:100%;border:0;}

    </style>
</head>
<body>
<table cellspacing="0" cellpadding="0">
    <tr>
        <td>
            <table cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        <h1>404</h1>
                        <h3>大事不妙啦!</h3>
                        <p>你访问的页面好像不小心被作者给弄丢了~<br/>
                            <a href="/login/">请返回首页 ></a>
                        </p>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
</body>
</html>

500.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>出错了</title>
</head>
<body>
    <h1>程序员又要加班了。。。。。</h1>
</body>
</html>

 

posted @ 2021-10-27 09:21  东北小酱  阅读(48)  评论(0)    收藏  举报