From 8c9cc1f84de2184187d04853cde1a1d4992d3bec Mon Sep 17 00:00:00 2001 From: luxagraf Date: Mon, 8 Aug 2016 22:08:07 -0400 Subject: changed image url on homepage to use cdn --- app/jrnl/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/jrnl') diff --git a/app/jrnl/models.py b/app/jrnl/models.py index da6d947..844db12 100644 --- a/app/jrnl/models.py +++ b/app/jrnl/models.py @@ -134,7 +134,7 @@ class Entry(models.Model): def get_image_wide_url(self): img = self.image.url.split('post-images/')[1].split('/')[1] # return '%shome-images/%s' % (settings.IMAGES_URL, img) - return '/media/images/home-images/%s' % (img) + return '%shome-images/%s' % (settings.IMAGES_URL, img) def get_image_hero_url(self): img = self.image.url.split('post-images/')[1].split('/')[1] -- cgit v1.2.3-70-g09d2