make sure folder exists

This commit is contained in:
j 2011-10-31 01:18:52 +01:00
parent 6dc151cb50
commit 825f2a5f63

View file

@ -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()