2👍
You should define upload_to
option to your ImageField:
class FileStorage(models.Model):
image = models.ImageField(upload_to="media/", null=True, blank=True)
Source:stackexchange.com
2👍
You should define upload_to
option to your ImageField:
class FileStorage(models.Model):
image = models.ImageField(upload_to="media/", null=True, blank=True)