Changeset - f2cb50a84821
[Not reviewed]
0 1 0
Brett Smith - 4 years ago 2019-09-30 15:19:54
brettcsmith@brettcsmith.org
settings: Read more from environment variables.
1 file changed with 3 insertions and 5 deletions:
0 comments (0 inline, 0 general)
pinaxcon/settings.py
Show inline comments
...
 
@@ -8,3 +8,3 @@ BASE_DIR = PACKAGE_ROOT
 

	
 
DEBUG = bool(int(os.environ.get("DEBUG", "1")))
 
DEBUG = bool(int(os.environ.get("DJANGO_DEBUG", "1")))
 

	
...
 
@@ -26,3 +26,3 @@ DATABASES['default'].update(db_from_env)
 

	
 
ALLOWED_HOSTS = [".localhost", ".herokuapp.com", ".northbaypython.org", "127.0.0.1"]
 
ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS", "localhost").split()
 
CANONICAL_HOST = os.environ.get("DJANGO_CANONICAL_HOST", None)
...
 
@@ -37,3 +37,2 @@ THEME_CONTACT_EMAIL = os.environ.get("THEME_CONTACT_EMAIL", None)
 

	
 

	
 
# Local time zone for this installation. Choices can be found here:
...
 
@@ -45,4 +44,3 @@ THEME_CONTACT_EMAIL = os.environ.get("THEME_CONTACT_EMAIL", None)
 
# system time zone.
 
TIME_ZONE = os.environ.get("TZ", "America/Los_Angeles")
 

	
 
TIME_ZONE = os.environ.get("TZ")
 

	
0 comments (0 inline, 0 general)