trying to figure out how to serve user-uploaded files
This commit is contained in:
@ -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/')
|
||||
|
Reference in New Issue
Block a user