Skip to content

Commit

Permalink
Add override template
Browse files Browse the repository at this point in the history
  • Loading branch information
dstegelman committed Apr 18, 2015
1 parent ebdb74e commit 426f068
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion demo/demo/settings.py
Expand Up @@ -5,6 +5,7 @@
import sys

ROOT = os.path.dirname(os.path.abspath(__file__))
SITE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '../'))
path = lambda *a: os.path.join(ROOT, *a)

prev_sys_path = list(sys.path)
Expand Down Expand Up @@ -131,14 +132,15 @@

DOWNTIME_EXEMPT_PATHS = ('/admin',)

DOWNTIME_URL_REDIRECT = "http://google.com"
#DOWNTIME_URL_REDIRECT = "http://google.com"

ROOT_URLCONF = 'demo.urls'

# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION = 'demo.wsgi.application'

TEMPLATE_DIRS = (
os.path.join(SITE_ROOT, 'templates'),
)

INSTALLED_APPS = (
Expand Down
11 changes: 11 additions & 0 deletions demo/templates/downtime/downtime.html
@@ -0,0 +1,11 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
</head>
<body>
<h1>Site is Down New</h1>

</body>
</html>

0 comments on commit 426f068

Please sign in to comment.