0
I made a website for a newspaper in Django. I have deployed to Heroku and there I have a news register, where I have the title, summary, content and date fields. According to the model:
class Noticia(models.Model):
Titulo = models.TextField(max_length=255, null=False)
Resumo = RichTextUploadingField(null=False)
Conteudo = RichTextUploadingField(null=False)
DataPublicacao = models.DateTimeField(auto_now_add=True)
However, when I register the images disappear after a while. HTML code
{% for noticia in noticias %}
<div class="card">
<div class="card-body d-flex flex-column align-items-start">
<h3 class="mb-0">
<a class="text-dark" href="/posts/{{ noticia.pk }}">{{ noticia.Titulo|safe }}</a>
</h3>
<div class="mb-1 text-muted">{{ noticia.DataPublicacao|date:"d/m/y" }}</div>
{{ noticia.Resumo|safe }}
</div>
</div>
{% endfor %}
The image is in the Summary field, the text I put together with it continues to appear, but the image does not. I’m using Heroku’s free plan, does anyone know what might be? What could be causing this?
Thank you very much, I will try to implement!
– Gustavo Augusto Pires