mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 19:09:22 +02:00
Fix context processor by including it in settings.py
This commit is contained in:
parent
11e7abea52
commit
2c20db83fa
3 changed files with 5 additions and 2 deletions
|
@ -27,6 +27,8 @@ services:
|
|||
- DJANGO_DEBUG=True
|
||||
# Tell Django where it is being hosted
|
||||
- DJANGO_BASE_URL=http://localhost:8080
|
||||
# Is this a production environment
|
||||
- IS_PRODUCTION
|
||||
# Public site URL link
|
||||
- GETGOV_PUBLIC_SITE_URL=https://beta.get.gov
|
||||
# Set a username for accessing the registry
|
||||
|
|
|
@ -210,6 +210,7 @@ TEMPLATES = [
|
|||
"registrar.context_processors.language_code",
|
||||
"registrar.context_processors.canonical_path",
|
||||
"registrar.context_processors.is_demo_site",
|
||||
"registrar.context_processors.is_production",
|
||||
],
|
||||
},
|
||||
},
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
|
||||
<head>
|
||||
{% if IS_PRODUCTION %}
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PZ5QSP6QPL"></script>
|
||||
<script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-PZ5QSP6QPL');
|
||||
</script>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue