-
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.
github actions: Create a new settings file for the public dev site
- Loading branch information
Showing
2 changed files
with
35 additions
and
1 deletion.
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
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 |