from django.db import models class Producte(models.Model): nom = models.CharField(max_length=100) imatge = models.ImageField(upload_to='productes/')