So currently I have two types of files static files and media files. Static files contain static content (bootstrap , css etc) and media files contain content uploaded by the user admin section (simple pictures). Now my website can serve static content but it cannot serve media content.The pictures in the media folder are not being displayed. My current directory structure looks like this
When I load the page that uses the media images I get the following error from Chrome
This is the main related configuration I have in my settings.py
Can anyone please tell me why my media content is not loading ? My static content is loading fine. (for static I had to do Update: I came across this link and it suggests that I create another static app and run the asked 14 Jun '17, 18:09 zedan185 |
In the Django world, "static" refers primarily to JS, CSS, and images used by your apps' respective UIs. "media" refers to uploaded files. There's no need to run a management command to get them served. Our recommendation is that you create a "symbolic link to static only" app via our control panel, using If you do this, your media will still get uploaded to Hope that helps! answered 15 Jun '17, 17:42 seanf |