Comment remplir une image à modèle à Django à partir des vues
from django.db import models
from django.contrib.auth import get_user_model
User = get_user_model()
class Image(models.Model):
owner = models.ForeignKey(User, on_delete=models.CASCADE)
image = models.ImageField(upload_to='Upload', height_field=None, width_field=None, max_length=100)
Gifted Giraffe