We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 121b547 commit 57c46b3Copy full SHA for 57c46b3
djangoproject/context_processors.py
djangoproject/settings/common.py
@@ -209,7 +209,6 @@
209
"docs.context_processors.docs_version",
210
"releases.context_processors.django_version",
211
"aggregator.context_processors.community_stats",
212
- "djangoproject.context_processors.display_preview_banner",
213
"django.template.context_processors.request",
214
],
215
},
djangoproject/templates/includes/header.html
@@ -1,4 +1,4 @@
1
-{% if DISPLAY_PREVIEW_BANNER %}
+{% if 'preview.djangoproject.com' in request.get_host %}
2
<div class="copy-banner" style="background: #fff78e; padding: 10px;"></div>
3
{% endif %}
4
<header id="top">
0 commit comments