Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion pydotorg/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@
# EthicalAds fetches ad decisions as JSONP <script> tags
"https://server.ethicalads.io",
"https://ajax.googleapis.com",
# PSF fundraiser banner, loaded in 'templates/base.html'
"https://donate.python.org",
],
"style-src": [
SELF,
Expand All @@ -375,7 +377,12 @@
"data:",
"https:",
],
"font-src": [SELF, "data:"],
"font-src": [
SELF,
"data:",
# Font files for the PSF fundraiser banner
"https://donate.python.org",
],
"connect-src": [
SELF,
"https://console.python.org",
Expand Down
2 changes: 2 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
<meta name="format-detection" content="telephone=no">

<script src="{{ STATIC_URL }}js/libs/modernizr.js"></script>
<script async
src="https://donate.python.org/fundraiser-banner/fundraiser-banner.js"></script>

{% stylesheet 'style' %}
{% stylesheet 'mq' %}
Expand Down