10 months 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??
0 Replies
10 months ago
im sorry but "I can not see the picture" is not super helpful, please provide actual errors
10 months ago
what errors are you getting though? 404?
actually I dont take any error, but profile photos of users can not be seen
10 months ago
there are errors somewhere, please provide them
10 months ago
check your dev tools for your browser
10 months ago
what does mongo have to do with this lol
10 months ago
please provide errors
10 months 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)
10 months ago
that is useful information, but that doesn't actually answer my question
10 months ago
do you not have a volume?
10 months ago
go ahead and mount a volume to /app/media
10 months ago
those are services, not files
10 months ago
mount the volume to /app/media
10 months ago
show me your urls.py file please
10 months ago
please implement the static file server as shown here -
10 months ago
upload images
10 months ago
have you deloyed these changes?
10 months ago
awsome