trying to figure out how to serve user-uploaded files

This commit is contained in:
Yamozha
2021-02-09 18:19:42 +02:00
parent d1280445f4
commit dfda536aab
39 changed files with 93 additions and 22 deletions

View File

@ -1,4 +1,4 @@
from django.db import models
class Image(models.Model):
image = models.ImageField(upload_to='static/%Y/%m/%d/', blank=True)
image = models.FileField(upload_to='static/')