-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #766 from IATI/feature/update-django-wagtail
Update docker base image, Django and Wagtail
- Loading branch information
Showing
10 changed files
with
137 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
"""Settings for the public dev environment (overrides base settings). | ||
DEBUG is False etc. because the website is publicly accessible. | ||
""" | ||
|
||
import os | ||
from .base import * # noqa: F401, F403 # pylint: disable=unused-wildcard-import, wildcard-import | ||
|
||
DEBUG = False | ||
|
||
# SECURITY WARNING: keep the secret key used in production secret! | ||
# Overwrite this variable in local.py with another unguessable string. | ||
SECRET_KEY = os.environ.get('SECRET_KEY') | ||
|
||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' | ||
|
||
ALLOWED_HOSTS = [ | ||
'0.0.0.0', | ||
'iatistandard.org', | ||
'.iatistandard.org', | ||
] | ||
|
||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') | ||
|
||
SECURE_SSL_REDIRECT = not DEBUG | ||
CSRF_COOKIE_SECURE = not DEBUG | ||
SESSION_COOKIE_SECURE = not DEBUG | ||
|
||
AZURE_ACCOUNT_NAME = os.getenv('AZURE_ACCOUNT_NAME') | ||
|
||
try: | ||
from .local import * # # noqa: F401, F403 # pylint: disable=unused-wildcard-import, wildcard-import | ||
except ImportError: | ||
pass |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.