2 years ago
I deployed my website. I used github. However, even though I can complete the form to update profile photos, I can not see the picture. Can you help me??
54 Replies
2 years ago
im sorry but "I can not see the picture" is not super helpful, please provide actual errors
2 years ago
what errors are you getting though? 404?
actually I dont take any error, but profile photos of users can not be seen
2 years ago
there are errors somewhere, please provide them
2 years ago
check your dev tools for your browser
2 years ago
what does mongo have to do with this lol
2 years ago
please provide errors
2 years ago
what is your volume's mount point
MEDIAROOT = os.path.join(BASEDIR, 'media')
MEDIAURL = '/media/' this is settings.py and related class class Customer(models.Model): user = models.OneToOneField(User, ondelete=models.CASCADE)
profilephoto = models.ImageField(uploadto='profile_photos/', null=True, blank=True)
2 years ago
that is useful information, but that doesn't actually answer my question
2 years ago
do you not have a volume?
2 years ago
go ahead and mount a volume to /app/media
2 years ago
those are services, not files
2 years ago
mount the volume to /app/media
2 years ago
show me your urls.py file please
2 years ago
please implement the static file server as shown here -
2 years ago
upload images
2 years ago
have you deloyed these changes?
2 years ago
awsome








