Skip to content

Commit

Permalink
Merge pull request #36 from ccnmtl/environment-setting
Browse files Browse the repository at this point in the history
Add ENVIRONMENT setting to staging/production configs
  • Loading branch information
ndittren authored Oct 9, 2024
2 parents 3b5d4eb + e7f0930 commit 5058d13
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0.3.6
====================
* Added ENVIRONMENT django setting, denoting either 'staging' or
'production'

0.3.5 (2024-10-08)
====================
* Updated sentry_init to include environment tag.
Expand Down
1 change: 1 addition & 0 deletions ctlsettings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def common(**kwargs):
s3prefix = kwargs.get('s3prefix', 'ctl')

DEBUG = False
ENVIRONMENT = 'production'

DATABASES = {
'default': {
Expand Down
1 change: 1 addition & 0 deletions ctlsettings/staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def common(**kwargs):

DEBUG = False
STAGING_ENV = True
ENVIRONMENT = 'staging'

STATSD_PREFIX = project + "-staging"

Expand Down

0 comments on commit 5058d13

Please sign in to comment.