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
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Michael William Coughlin
GraceDB Server
Commits
06ba44aa
Commit
06ba44aa
authored
8 years ago
by
Tanner Prestegard
Committed by
Alexander Pace
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
modifying template settings and adding in debug info
parent
ed68c7c9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
settings/default.py
+56
-29
56 additions, 29 deletions
settings/default.py
templates/base.html
+10
-4
10 additions, 4 deletions
templates/base.html
with
66 additions
and
33 deletions
settings/default.py
+
56
−
29
View file @
06ba44aa
...
...
@@ -257,30 +257,64 @@ ADMIN_MEDIA_PREFIX = '/media/'
# Make this unique, and don't share it with anybody.
SECRET_KEY
=
DEFAULT_SECRET_KEY
# Upgrade template settings to 1.8
TEMPLATES
=
[
{
'
BACKEND
'
:
'
django.template.backends.django.DjangoTemplates
'
,
'
DIRS
'
:
[
'
/home/gracedb/gracedb/templates
'
,
],
'
APP_DIRS
'
:
True
,
'
OPTIONS
'
:
{
'
context_processors
'
:
[
# Defaults
'
django.contrib.auth.context_processors.auth
'
,
'
django.core.context_processors.debug
'
,
'
django.core.context_processors.i18n
'
,
'
django.core.context_processors.media
'
,
'
django.core.context_processors.static
'
,
# Extra additions
'
django.core.context_processors.request
'
,
'
gracedb.middleware.auth.LigoAuthContext
'
,
'
middleware.debug.LigoDebugContext
'
,
'
ligoauth.context_processors.shib_login_url
'
,
],
},
},
]
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS
=
(
#'django.template.loaders.filesystem.load_template_source',
# replaced by...
'
django.template.loaders.filesystem.Loader
'
,
# Upgrade to 1.4
#'django.template.loaders.app_directories.load_template_source',
'
django.template.loaders.app_directories.Loader
'
,
# 'django.template.loaders.eggs.load_template_source',
)
#TEMPLATE_LOADERS = (
# #'django.template.loaders.filesystem.load_template_source',
# # replaced by...
# 'django.template.loaders.filesystem.Loader',
# # Upgrade to 1.4
# #'django.template.loaders.app_directories.load_template_source',
# 'django.template.loaders.app_directories.Loader',
## 'django.template.loaders.eggs.load_template_source',
#)
#
#TEMPLATE_CONTEXT_PROCESSORS = (
# #"django.core.context_processors.auth",
# # replaced by...
# "django.contrib.auth.context_processors.auth",
# "django.core.context_processors.debug",
# "django.core.context_processors.i18n",
# "django.core.context_processors.media",
# "django.core.context_processors.static",
# "django.core.context_processors.request",
# "gracedb.middleware.auth.LigoAuthContext",
# 'middleware.debug.LigoDebugContext',
# 'ligoauth.context_processors.shib_login_url',
#)
#
## Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
## Always use forward slashes, even on Windows.
## Don't forget to use absolute paths, not relative paths.
#TEMPLATE_DIRS = (
# "/home/gracedb/gracedb/templates",
#)
TEMPLATE_CONTEXT_PROCESSORS
=
(
#"django.core.context_processors.auth",
# replaced by...
"
django.contrib.auth.context_processors.auth
"
,
"
django.core.context_processors.debug
"
,
"
django.core.context_processors.i18n
"
,
"
django.core.context_processors.media
"
,
"
django.core.context_processors.static
"
,
"
django.core.context_processors.request
"
,
"
gracedb.middleware.auth.LigoAuthContext
"
,
'
middleware.debug.LigoDebugContext
'
,
'
ligoauth.context_processors.shib_login_url
'
,
)
AUTHENTICATION_BACKENDS
=
(
# 'gracedb.middleware.auth.LigoAuthBackend',
...
...
@@ -322,13 +356,6 @@ MIDDLEWARE_CLASSES = [
ROOT_URLCONF
=
'
urls
'
TEMPLATE_DIRS
=
(
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
"
/home/gracedb/gracedb/templates
"
,
)
INSTALLED_APPS
=
(
'
django.contrib.auth
'
,
'
django.contrib.admin
'
,
...
...
This diff is collapsed.
Click to expand it.
templates/base.html
+
10
−
4
View file @
06ba44aa
...
...
@@ -32,24 +32,30 @@ function changeTime(obj, label) {
<div
id=
"content"
>
<center>
<h1>
GraceDB
—
Gravitational Wave Candidate Event Database
</h1>
<h1>
GraceDB
—
Gravitational Wave Candidate Event Database
</h1>
</center>
{% block nav %}
{% include "navbar_frag.html" %}
{% endblock %}
<p>
</p>
<!-- bad way to create vertical space -->
<p>
</p>
<!-- bad way to create vertical space -->
{% load flash %}
{% flash %}
<div
id=
"status_block"
class=
"{{ params.class }}"
>
{{ msg }}
</div>
{% endflash %}
{% if user.is_staff %}
<!-- debug information for admins -->
<div
id=
"debugDiv"
>
<!--<pre>{% filter force_escape %} {% debug %} {% endfilter %}</pre> -->
</div>
{% endif %}
<h2>
{% block heading %}Title{% endblock %}
</h2>
<h2>
{% block heading %}Title{% endblock %}
</h2>
<p>
test
</p>
{% block content %}{% endblock %}
</div>
...
...
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