Skip to content

Commit a8aab5c

Browse files
committed
Added scout-apm to the requirements and added settings scaffolding.
- Legacy-Id: 19399
1 parent 6f609e1 commit a8aab5c

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

changelog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ ietfdb (7.39.0) ietf; urgency=medium
2626
* Merged in [19396] from rjsparks@nostrum.com:
2727
Provide a metadata endpoint to assist rfcdiff.pyht.
2828

29+
* Added scout-apm to requirements and added settings scaffolding.
30+
2931
-- Robert Sparks <rjsparks@nostrum.com> 07 Oct 2021 15:20:42 +0000
3032

3133

ietf/settings.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,7 @@ def skip_unreadable_post(record):
10511051
# Set debug apps in settings_local.DEV_APPS
10521052

10531053
DEV_APPS = [] # type: List[str]
1054+
DEV_PRE_APPS = []
10541055
DEV_MIDDLEWARE = ()
10551056

10561057
# django-debug-toolbar and the debug listing of sql queries at the bottom of
@@ -1226,9 +1227,12 @@ def skip_unreadable_post(record):
12261227

12271228
# Add DEV_APPS to INSTALLED_APPS
12281229
INSTALLED_APPS += DEV_APPS
1230+
INSTALLED_APPS = DEV_PRE_APPS + INSTALLED_APPS
12291231
MIDDLEWARE += DEV_MIDDLEWARE
12301232
TEMPLATES[0]['OPTIONS']['context_processors'] += DEV_TEMPLATE_CONTEXT_PROCESSORS
12311233

1234+
if SERVER_MODE == 'production':
1235+
INSTALLED_APPS.insert(0,'scout_apm.django')
12321236

12331237
# We provide a secret key only for test and development modes. It's
12341238
# absolutely vital that django fails to start in production mode unless a
@@ -1288,4 +1292,4 @@ def skip_unreadable_post(record):
12881292
CSRF_COOKIE_SAMESITE = 'Lax'
12891293
SESSION_COOKIE_SECURE = False
12901294
SESSION_COOKIE_SAMESITE = 'Lax'
1291-
1295+

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ pytz>=2014.7
6060
requests!=2.12.*
6161
requests-mock>=1.8
6262
rfc2html>=2.0.1
63+
scout-apm>=2.23.0
6364
selenium>=3.9.0
6465
six>=1.10.0
6566
svn>=1.0.1

0 commit comments

Comments
 (0)