Skip to content

Commit 15667cc

Browse files
Merge pull request #324 from DemocracyLab/1_24_20_release_fixes
SEO_JS_ENABLED should be set to False when anything other than 'True' is entered
2 parents e4978de + 33f4430 commit 15667cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

democracylab/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def read_connection_config(config):
353353
SEO_JS_BACKEND = "common.helpers.caching.DebugPrerenderIO"
354354
SEO_JS_PRERENDER_URL = os.environ.get('SEO_JS_PRERENDER_URL', 'http://localhost:3000/') # Note trailing slash.
355355
SEO_JS_PRERENDER_RECACHE_URL = SEO_JS_PRERENDER_URL + "recache"
356-
SEO_JS_ENABLED = os.environ.get('SEO_JS_ENABLED', False)
356+
SEO_JS_ENABLED = os.environ.get('SEO_JS_ENABLED', False) == 'True'
357357

358358
# TODO: Put in environment variable
359359
SEO_JS_USER_AGENTS = (

0 commit comments

Comments
 (0)