From 825f2a5f6366b6fc1231f51f58be98bd25cbb44c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 31 Oct 2011 01:18:52 +0100 Subject: [PATCH] make sure folder exists --- pandora/item/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index bfd16276e..2900f7106 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -941,6 +941,7 @@ class Item(models.Model): join_timelines(timelines, self.timeline_prefix) def make_poster(self, force=False): + ox.makedirs(os.path.join(settings.MEDIA_ROOT,self.path())) if not self.poster or force: self.delete_poster() poster = self.make_siteposter()