Skip to content

Instantly share code, notes, and snippets.

@wwj718 wwj718/django_404.html Secret
Created Oct 26, 2013

Embed
What would you like to do?
django 404错误,不要继承base.html,不然无法渲染
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>404</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" >
<link rel="stylesheet" href="/static/css/bootstrap2.3.1.min.css">
<!--自己的css放到这里-->
<link rel="stylesheet" href="/static/css/bootstrap-responsive.min.css">
<script src="/static/js/jquery-1.8.2.min.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
<style type="text/css" media="screen">
#main #header h1 {
color: #0061A5;
display: block;
font: 72px 'TeXGyreScholaBold',Arial,sans-serif;
position: relative;
text-align: center;
text-shadow: 2px 2px #F7F7F7;
}
</style>
</head>
<body>
<div id="main">
<header id="header">
<h1><span class="icon">!</span>404</h1>
<h1><span class="sub">page not found :-(</span></h1>
</header>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.