Forums

Media files not rendering

I have a Django website I deployed here. Whenever I changed the debug to False, the media files are not displaying on the website. I don't know why this is happening.

That's because Django does not serve static files when DEBUG is False: https://docs.djangoproject.com/en/4.1/howto/static-files/#serving-static-files-during-development

Oh! Thank you.

Can I, perhaps, have a workaround for that?

Setup static files: https://help.pythonanywhere.com/pages/DjangoStaticFiles/

Thank you, I did that before.

And I have been able to solve the problem. I later saw that I was putting the URL in quotes in the media section.

So it works for you now?

Yes, it works now