Adding HTTP 404 error page template
- Legacy-Id: 250
This commit is contained in:
parent
edc55bcf05
commit
7962e722d3
35
ietf/templates/404.html
Normal file
35
ietf/templates/404.html
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<center>
|
||||||
|
<img src="http://www.ietf.org/images/ietflogo2e.gif" height="160" width="280">
|
||||||
|
<br clear=all>
|
||||||
|
|
||||||
|
<center><h1>The Internet Engineering Task Force</h1></center>
|
||||||
|
<table border=0 cellspacing=5 cellpadding=5>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<font size = 3>
|
||||||
|
<center><img alt="" src="http://www.ietf.org/images/blue-line.jpg"></center>
|
||||||
|
<br clear=all>
|
||||||
|
<h3>The page you are looking for cannot be found.</h3><br>
|
||||||
|
If it is an Internet-Draft, the version may have expired.<br>
|
||||||
|
Please visit <A HREF="http://search.ietf.org"> search.ietf.org</A> and enter in keywords or the name of the draft without the version numbers.
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
For other Web page issues, please contact <a href="mailto:webmaster@ietf.org">webmaster@ietf.org</a>. <br>
|
||||||
|
<br>
|
||||||
|
<font size = 3>
|
||||||
|
<center><img alt="Blue Line" src="http://www.ietf.org/images/blue-line.jpg"></center>
|
||||||
|
<br clear=all>
|
||||||
|
The IETF is an organized activity of the <a href="http://www.isoc.org"><img alt="ISOC" src="http://www.ietf.org/images/isoc-small.gif" hspace="3" border="0"></A>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
<i>The <A HREF="/secretariat.html">IETF Secretariat</A> is hosted by the NeuStar Secretariat Services, a wholly owned subsidiary of <a href="http://www.neustar.biz/"><img src="http://www.ietf.org/images/NS_logo_100px.gif" alt="NeuStar Logo" border="0">
|
||||||
|
|
||||||
|
</i>
|
||||||
|
{% endblock %}
|
|
@ -4,9 +4,14 @@ import traceback
|
||||||
|
|
||||||
import django.test.simple
|
import django.test.simple
|
||||||
from django.test import TestCase
|
from django.test import TestCase
|
||||||
|
from django.conf import settings
|
||||||
|
from django.db import connection
|
||||||
import ietf.settings
|
import ietf.settings
|
||||||
import ietf.urls
|
import ietf.urls
|
||||||
|
|
||||||
|
|
||||||
|
startup_database = settings.DATABASE_NAME # The startup database name, before changing to test_...
|
||||||
|
|
||||||
def run_tests(module_list, verbosity=1, extra_tests=[]):
|
def run_tests(module_list, verbosity=1, extra_tests=[]):
|
||||||
module_list.append(ietf.urls)
|
module_list.append(ietf.urls)
|
||||||
# If we append 'ietf.tests', we get it twice, first as itself, then
|
# If we append 'ietf.tests', we get it twice, first as itself, then
|
||||||
|
@ -60,7 +65,17 @@ class UrlTestCase(TestCase):
|
||||||
self.testtuples += [ (codes, testurl, goodurl) ]
|
self.testtuples += [ (codes, testurl, goodurl) ]
|
||||||
self.testurls += [ testurl ]
|
self.testurls += [ testurl ]
|
||||||
#print "(%s, %s, %s)" % (code, testurl, goodurl)
|
#print "(%s, %s, %s)" % (code, testurl, goodurl)
|
||||||
#print self.testtuples
|
# Use the default database for the url tests, instead of the test database
|
||||||
|
self.testdb = settings.DATABASE_NAME
|
||||||
|
connection.close()
|
||||||
|
settings.DATABASE_NAME = startup_database
|
||||||
|
connection.cursor()
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
# Revert to using the test database
|
||||||
|
connection.close()
|
||||||
|
settings.DATABASE_NAME = self.testdb
|
||||||
|
connection.cursor()
|
||||||
|
|
||||||
def testCoverage(self):
|
def testCoverage(self):
|
||||||
covered = []
|
covered = []
|
||||||
|
|
Loading…
Reference in a new issue