Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
ots
hypha
Commits
3ab0a2e1
Commit
3ab0a2e1
authored
6 years ago
by
Fredrik Jonsson
Browse files
Options
Downloads
Patches
Plain Diff
Added test settings.
parent
e11bf91b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
opentech/settings/test.py
+34
-0
34 additions, 0 deletions
opentech/settings/test.py
with
34 additions
and
0 deletions
opentech/settings/test.py
0 → 100644
+
34
−
0
View file @
3ab0a2e1
import
os
from
.base
import
*
# noqa
# Do not set SECRET_KEY, Postgres or LDAP password or any other sensitive data here.
# Instead, use environment variables or create a local.py file on the server.
# Disable debug mode
DEBUG
=
False
# Cache everything for 10 minutes
# This only applies to pages that do not have a more specific cache-control
# setting. See urls.py
CACHE_CONTROL_MAX_AGE
=
600
# Configuration from environment variables
# Alternatively, you can set these in a local.py file on the server
env
=
os
.
environ
.
copy
()
# Basic configuration
APP_NAME
=
env
.
get
(
'
APP_NAME
'
,
'
opentech
'
)
SECURE_SSL_REDIRECT
=
False
if
'
SECRET_KEY
'
in
env
:
SECRET_KEY
=
env
[
'
SECRET_KEY
'
]
# Email config
EMAIL_BACKEND
=
'
django.core.mail.backends.console.EmailBackend
'
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