Django media files are not loading when DEBUG=False
Вставка
- Опубліковано 15 вер 2024
- Django media files are not loading when DEBUG=False "Pythonanywhere.com"
Step 1 : Go to settings.py, DEBUG=False (For production)
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.
settings.py
MEDIA_ROOT=os.path.join(BASE_DIR, 'media')
MEDIA_URL='/media/'
STATIC_URL = '/static/'
STATIC_ROOT=os.path.join(BASE_DIR, 'static')
#Django #Pythonanywhere
Contact : support@bbtpoint.com
www.bbtpoint.com/
Thanks so much for your help! This resolved my issue.
very helpful. Thanks
Glad it was helpful!
why you all are thanking this he does not have have sovled any thing he is just selling his books DO NOT WATCH THIS !!
Not selling anything it's a tutorial only.
HEY GUY, YOUR VIDEO SAVED MY LIFE 😍😍😍😍😍
Thank you a lot bro it solved my problem 🖤
Thanks! Helped me a lot!
EU TE AMO CARA. I LOVE U
i have got an error 500 in python anywhere .if debug is true it show home template not found
I went through your tutorial, great. However, some of my media files are still not loading. Please help.
Thanks a lot, I was stuck from one week
Thanks a lot man.
Worked 🙌♥️
I can not thank you enough for your help.
Tank you so much............................
Thanks. Helpful.
Thanks a lot I was searching for this from last 1 hr
How can I fix this on namecheap?
Nice explanation. It is possible to backup and restore the mysql database with free tier if possible how to do.
thank's bro :)
Welcome 👍
Thanks a lot man!
great video.
I'm having issues with my static files, its not showing and I'm getting frustrated please help me
Have you used collectstatic?
@@JaikrishnaSharma on the bash console?
Can you give me the song name or url pls
ua-cam.com/video/K4DyBUG242c/v-deo.html
Help me
What's the issue?
@@JaikrishnaSharma dont work !!
@@JaikrishnaSharma i send you picture on mail please help
Please send the email again.
very helpful. Thanks
You're welcome!