A rather simple question which I will elaborate on if needed in order to solve the problem.
I attempted to use a simple call to {{ MEDIA_URL }}
in order to show an image on an About Us Django flatpage, but it seems the flatpage is ignoring the fact that it is a Django variable and simply taking {{MEDIA_URL}}
as text?
I supplied: <img src="{{ MEDIA_URL }}images/static/Deb-and-Diana-About-Us.jpg" alt="Deb & Diana Portrait" width="300" height="384" align="left">
but when the template is rendered it doesn't append the MEDIA_URL where it should, it just leaves the words {{ MEDIA_URL }}
.
Am I missing an import or something? The default.html which governs the flatpage extends my usual template so I see no reason why this should fail, unless I don't understand what flatpages have access to?