Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

367
Visualizações
Cloudinary Image Upload errpr in django python while hosted in pythonanywhere

So i use pythonanywhere to host a django website where pictures are uploaded and shown the uploaded pictures are stored in cloudinary showing the pictures is working fine but when i upload a post i get this error:

Error at /post/
Unexpected error - MaxRetryError("HTTPSConnectionPool(host='api.cloudinary.com', port=443): Max retries exceeded with url: /v1_1/meme-topia/image/upload (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d77f41370>: Failed to establish a new connection: [Errno 111] Connection refused'))")

Models file:

from django.db import models
from cloudinary.models import CloudinaryField


# Create your models here.
class MemeImg(models.Model):
    Title = models.CharField(max_length=500)
    Post_Img = CloudinaryField('image')

    def __str__(self):
        return self.Title

Forms file:

from django import forms
from .models import MemeImg


class PostImg(forms.ModelForm):
    class Meta:
        model = MemeImg
        fields = '__all__'

And then the source code link:https://github.com/Shadow-Knight503/memoster503.git

Please help

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

I believe the keys should be in lower caps. The foolproof way is to go to your Dashboard and download your python settings:

enter image description here

settings.py should be in this format:

CLOUDINARY = {
      'cloud_name': 'CLOUD-NAME',  
      'api_key': 'xx',  
      'api_secret': 'xx',
      'api_proxy': 'http://proxy.server:3128'
}
over 4 years ago · Santiago Trujillo Relatório

0

Are you sure that you have exactly this in your settings.py ?

    CLOUDINARY = {
      'CLOUD_NAME': 'CLOUD-NAME',  
      'API_KEY': 'xx',  
      'API_SECRET': 'xx',
      'API_PROXY': 'http://proxy.server:3128'
}
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda