It is strange, but we need it in both the base template and the settings.js template, so settings.py seemed like the best home for it.