Skip to content

Commit 60d5832

Browse files
author
Brandon Istenes
committed
Get rid of staging environment
1 parent b30e010 commit 60d5832

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

src/application/__init__.py

-10
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
class Environment(object):
1414
DEV = False
1515
TEST = False
16-
STAGING = False
1716
PROD = False
1817
LOCAL = False # True if DEV or TEST, false if STAGING or PROD
1918
env_name = None
@@ -24,8 +23,6 @@ def __init__(self, mode):
2423
self.DEV = True
2524
elif mode == 'TEST':
2625
self.TEST = True
27-
elif mode == 'STAGING':
28-
self.STAGING = True
2926
elif mode == 'PROD':
3027
self.PROD = True
3128
else:
@@ -64,13 +61,6 @@ def __init__(self, mode):
6461
print 'Environment: TEST'
6562
app.config.from_object('application.settings.Testing')
6663

67-
elif app.env.STAGING:
68-
print 'Environment: STAGING'
69-
# Development settings
70-
app.config.from_object('application.settings.Staging')
71-
# Flask-DebugToolbar
72-
toolbar = DebugToolbarExtension(app)
73-
7464
else:
7565
assert app.env.PROD
7666
print 'Environment: PROD'

src/application/config/env_conf.py.staging

-1
This file was deleted.

src/application/settings.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,6 @@ class Testing(Config):
3535
TESTING = True
3636

3737

38-
class Staging(Config):
39-
DEBUG = True
40-
PROPAGATE_EXCEPTIONS = True
41-
# Flask-DebugToolbar settings
42-
DEBUG_TB_PROFILER_ENABLED = True
43-
DEBUG_TB_INTERCEPT_REDIRECTS = False
44-
CSRF_ENABLED = True
45-
46-
4738
class Production(Config):
4839
DEBUG = False
49-
CSRF_ENABLED = True
40+
CSRF_ENABLED = True

0 commit comments

Comments
 (0)