django-blog-it icon indicating copy to clipboard operation
django-blog-it copied to clipboard

Image url is chnging randomly

Open veshitala opened this issue 6 years ago • 1 comments

when i'm uploading image it is being saved in 'static/blog/uploads/%Y/%m/%d/' ,,but while retrieving the image url is changing according to slug, .for example i saved image initially in 'http://127.0.0.1:8000/static/blog/uploads/2019/02/14/IMG_20180822_185720714.jpg' , but when i'm opening ,my blog to for continue reading url changes to 'http://127.0.0.1:8000/blog/data-science-blog/static/blog/uploads/2019/02/14/IMG_20180822_185720714.jpg' . How i can cope up with this .How to use slug field properly.

veshitala avatar Feb 14 '19 16:02 veshitala

{% if blog_name.featured_image %}

{% endif %}

i think this line is causing problem

veshitala avatar Feb 14 '19 18:02 veshitala