I am using Django ImageKit
And I have absolutely no idea how to go about implementing a user uploaded image for a profile the user will have. I have it here list in my models. All attempts I have worked out have failed. Can any please guide me to steps on how to go about this? Thank you in advance!
Models.py
from imagekit.models import ProcessedImageField
from imagekit.processors import ResizeToFill
class Account(models.Model):
user = models.OneToOneField(AUTH_USER_MODEL, related_name="account", verbose_name=_("user"))
real_name = models.CharField(max_length=50,blank=True)
birthday = models.DateField(null=True, blank=True)
city = models.CharField(max_length=50, blank=True)
state = models.CharField(max_length=2,blank=True)
image_thumbnail = ProcessedImageField(upload_to='img/user_images/main',
processors=[ResizeToFill(100, 50)],
format='JPEG',
null=True,
blank=True,
options={'quality': 60})