Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
b71c31d9
Unverified
Commit
b71c31d9
authored
Jan 22, 2017
by
Thom Wiggers
📐
Browse files
Clarify some things about settings with some comments
parent
aae44beb
Changes
4
Hide whitespace changes
Inline
Side-by-side
website/thaliawebsite/settings/__init__.py
View file @
b71c31d9
"""
Settings module
This file controls what settings are loaded.
Using environment variables you can control the loading of various
overrides.
"""
# flake8: noqa
import
os
# Load base settings
from
.settings
import
*
# Attempt to load local overrides
try
:
from
.localsettings
import
*
except
ImportError
:
pass
if
os
.
environ
.
get
(
'DJANGO_PRODUCTION'
):
# Load production settings if DJANGO_PRODUCTION is set
if
os
.
environ
.
get
(
'DJANGO_PRODUCTION'
):
# pragma: nocover
from
.production
import
*
if
os
.
environ
.
get
(
'GITLAB_CI'
):
# Load testing settings if GITLAB_CI is set
if
os
.
environ
.
get
(
'GITLAB_CI'
):
# pragma: nocover
from
.testing
import
*
website/thaliawebsite/settings/production.py
View file @
b71c31d9
"""
Django settings for thaliawebsite project.
Django
production
settings for thaliawebsite project.
Docker version
Many of these settings override settings from settings.py.
This file is loaded by __init__.py if the environment variable
`DJANGO_PRODUCTION` is set.
See https://docs.djangoproject.com/en/dev/howto/deployment/checklist/
"""
...
...
website/thaliawebsite/settings/settings.py
View file @
b71c31d9
"""
Django settings for thaliawebsite project.
Generated by 'django-admin startproject' using Django 1.10b1.
This file is loaded by __init__.py.
Its settings may be overridden by files loaded after it.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
...
...
website/thaliawebsite/settings/testing.py
View file @
b71c31d9
"""
Settings for CI testing
This file is loaded by __init__.py if GITLAB_CI is set in the environment
"""
DATABASES
=
{
'default'
:
{
'ENGINE'
:
'django.db.backends.postgresql'
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment