diff --git a/apps/establishment/management/commands/fill_establishment_gallery.py b/apps/establishment/management/commands/fill_establishment_gallery.py index cbe7d9e8..bb6edc39 100644 --- a/apps/establishment/management/commands/fill_establishment_gallery.py +++ b/apps/establishment/management/commands/fill_establishment_gallery.py @@ -21,10 +21,10 @@ class Command(BaseCommand): image_url = establishment.image_url.rstrip() relative_image_path = image_url[len(cdn_prefix):] - response = requests.head(image_url, allow_redirects=True) - if response.status_code != status.HTTP_200_OK: - not_valid_link_counter += 1 - not_valid_urls.append(image_url) + #response = requests.head(image_url, allow_redirects=True) + #if response.status_code != status.HTTP_200_OK: + # not_valid_link_counter += 1 + # not_valid_urls.append(image_url) image, image_created = Image.objects.get_or_create( orientation=Image.HORIZONTAL,