Skip to content

Commit 71b5c33

Browse files
committed
Merge remote-tracking branch 'origin/main' into release
2 parents 22e3833 + c6d72c0 commit 71b5c33

File tree

7 files changed

+13
-9
lines changed

7 files changed

+13
-9
lines changed

custom_storages/__init__.py

Whitespace-only changes.

custom_storages.py custom_storages/storages.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,16 @@ def get_comment_blocks(self, content):
2929
"""
3030
return [
3131
(match.start(), match.end())
32-
for match in re.finditer(r"\/\*.*?\*\/", content, flags=re.DOTALL)
32+
for match in re.finditer(r'\/\*.*?\*\/', content, flags=re.DOTALL)
3333
]
3434

35-
def url_converter(self, name, hashed_files, template=None, comment_blocks=[]):
35+
def url_converter(self, name, hashed_files, template=None, comment_blocks=None):
3636
"""
3737
Return the custom URL converter for the given file name.
3838
"""
39+
if comment_blocks is None:
40+
comment_blocks = []
41+
3942
if template is None:
4043
template = self.default_template
4144

prod-requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ gunicorn==19.9.0
33
raven==6.10.0
44

55
# Heroku
6-
Whitenoise
7-
django-storages
8-
boto3
6+
Whitenoise==6.0.0 # 6.0.0 is latest version that supports Django 2.2
7+
django-storages==1.12.3 # 1.12.3 is latest version that supports Django 2.2
8+
boto3==1.26.165

pydotorg/settings/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545

4646
MEDIA_ROOT = os.path.join(BASE, 'media')
4747
MEDIA_URL = '/media/'
48+
MEDIAFILES_LOCATION = 'media'
4849

4950
# Absolute path to the directory static files should be collected to.
5051
# Don't put anything in this directory yourself; store your static files

pydotorg/settings/heroku.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
] + MIDDLEWARE
4242

4343
MEDIAFILES_LOCATION = 'media'
44-
DEFAULT_FILE_STORAGE = 'custom_storages.MediaStorage'
45-
STATICFILES_STORAGE = 'custom_storages.PipelineManifestStorage'
44+
DEFAULT_FILE_STORAGE = 'custom_storages.storages.MediaStorage'
45+
STATICFILES_STORAGE = 'custom_storages.storages.PipelineManifestStorage'
4646

4747
EMAIL_HOST = config('EMAIL_HOST')
4848
EMAIL_HOST_USER = config('EMAIL_HOST_USER')

templates/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ <h1 class="site-headline">
330330
&nbsp;<span class="pre"><a href="/psf-landing/">Python Software Foundation</a></span>
331331
&nbsp;<span class="pre"><a href="/about/legal/">Legal Statements</a></span>
332332
&nbsp;<span class="pre"><a href="/privacy/">Privacy Policy</a></span>
333-
&nbsp;<span class="pre"><a href="/psf/sponsorship/sponsors/#heroku">Powered by Heroku</a></span>
333+
<!--&nbsp;<span class="pre"><a href="/psf/community-infrastructure">Powered by PSF Community Infrastructure</a></span>-->
334334
</small></p>
335335
</div>
336336

templates/sponsors/admin/update_related_sponsorships.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends 'admin/base_site.html' %}
2-
{% load i18n admin_static %}
2+
{% load i18n static %}
33

44
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}">{% endblock %}
55

0 commit comments

Comments
 (0)