Skip to content
Snippets Groups Projects
Commit 6cde08f3 authored by Brian Moe's avatar Brian Moe
Browse files

Added django-maintenancemode middleware.

parent da18097f
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,7 @@ We need glue.ligolw, which requires SOOO many things from pylal
pip install django
pip install pytz
pip install simplejson
pip install django-maintenancemode
nfs0001
certs
......
......@@ -3,6 +3,7 @@
DEBUG = False
TEMPLATE_DEBUG = DEBUG
MAINTENANCE_MODE= False
EMAIL_HOST = 'gravity.phys.uwm.edu'
......@@ -194,6 +195,7 @@ MIDDLEWARE_CLASSES = [
# 'ligodjangoauth.LigoShibbolethMiddleware',
'ligoauth.middleware.auth.LigoAuthMiddleware',
# 'django.contrib.auth.middleware.RemoteUserMiddleware',
'maintenancemode.middleware.MaintenanceModeMiddleware',
]
ROOT_URLCONF = 'urls'
......
{% extends "base.html" %}
{% block title %}503 – Service Unavailable{{ object.graceid }}{% endblock %}
{% block heading %}Not Found {{ object.graceid }}{% endblock %}
{% block content %}
<p>GraceDb is temporarily unavailable. Please check back later.</p>
{{ message|safe }}
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment