Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IGWN Computing and Software
GraceDB
GraceDB Server
Commits
6cde08f3
Commit
6cde08f3
authored
11 years ago
by
Brian Moe
Browse files
Options
Downloads
Patches
Plain Diff
Added django-maintenancemode middleware.
parent
da18097f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/README
+1
-0
1 addition, 0 deletions
doc/README
settings/default.py
+2
-0
2 additions, 0 deletions
settings/default.py
templates/503.html
+9
-0
9 additions, 0 deletions
templates/503.html
with
12 additions
and
0 deletions
doc/README
+
1
−
0
View file @
6cde08f3
...
@@ -42,6 +42,7 @@ We need glue.ligolw, which requires SOOO many things from pylal
...
@@ -42,6 +42,7 @@ We need glue.ligolw, which requires SOOO many things from pylal
pip install django
pip install django
pip install pytz
pip install pytz
pip install simplejson
pip install simplejson
pip install django-maintenancemode
nfs0001
nfs0001
certs
certs
...
...
This diff is collapsed.
Click to expand it.
settings/default.py
+
2
−
0
View file @
6cde08f3
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
DEBUG
=
False
DEBUG
=
False
TEMPLATE_DEBUG
=
DEBUG
TEMPLATE_DEBUG
=
DEBUG
MAINTENANCE_MODE
=
False
EMAIL_HOST
=
'
gravity.phys.uwm.edu
'
EMAIL_HOST
=
'
gravity.phys.uwm.edu
'
...
@@ -194,6 +195,7 @@ MIDDLEWARE_CLASSES = [
...
@@ -194,6 +195,7 @@ MIDDLEWARE_CLASSES = [
# 'ligodjangoauth.LigoShibbolethMiddleware',
# 'ligodjangoauth.LigoShibbolethMiddleware',
'
ligoauth.middleware.auth.LigoAuthMiddleware
'
,
'
ligoauth.middleware.auth.LigoAuthMiddleware
'
,
# 'django.contrib.auth.middleware.RemoteUserMiddleware',
# 'django.contrib.auth.middleware.RemoteUserMiddleware',
'
maintenancemode.middleware.MaintenanceModeMiddleware
'
,
]
]
ROOT_URLCONF
=
'
urls
'
ROOT_URLCONF
=
'
urls
'
...
...
This diff is collapsed.
Click to expand it.
templates/503.html
0 → 100644
+
9
−
0
View file @
6cde08f3
{% 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 %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment