[Python] Django Admin Show Image from Imagefield

Discussão em 'Python' iniciado por Stack, Maio 11, 2025.

  1. Stack

    Stack Membro Participativo

    While I can show an uploaded image in list_display, is it possible to do this on the model page (the page you get for changing an element)?

    A quick sample model would be:

    class Model1(models.Model):
    image = models.ImageField(upload_to=directory)


    The default admin shows the URL of the uploaded image but not the image itself.

    Thanks!

    Continue reading...

Compartilhe esta Página