Django media files are not loading when DEBUG=False

preview_player
Показать описание
Step 2 : Go to web tab in Static Files:
URL: /media/
Directory: /home/username/projectname/media/
Step 3 : Reload the app.
Step 4 : Check your webapp.

MEDIA_URL='/media/'

STATIC_URL = '/static/'
#Django #Pythonanywhere

Рекомендации по теме
Комментарии
Автор

Thanks so much for your help! This resolved my issue.

faithtalk
Автор

Thank you a lot bro it solved my problem 🖤

davudhaci
Автор

why you all are thanking this he does not have have sovled any thing he is just selling his books DO NOT WATCH THIS !!

hamzakhan-xhcu
Автор

HEY GUY, YOUR VIDEO SAVED MY LIFE 😍😍😍😍😍

matheusreserva
Автор

Thanks a lot I was searching for this from last 1 hr

agranshuaggarwal
Автор

Thanks a lot, I was stuck from one week

stutikhemka
Автор

I went through your tutorial, great. However, some of my media files are still not loading. Please help.

ojikutuoladapo
Автор

Nice explanation. It is possible to backup and restore the mysql database with free tier if possible how to do.

muruganraja
Автор

I can not thank you enough for your help.

syedhassan
Автор

i have got an error 500 in python anywhere .if debug is true it show home template not found

AIHauntedHorizons-eg
Автор

great video.
I'm having issues with my static files, its not showing and I'm getting frustrated please help me

obapalacebenin
Автор

Can you give me the song name or url pls

yashwanthbalanagu