datadesk/django-bakery — pull request #13 by redmonkey (2012-12-02 23:36:35+00:00)
Title: Made dirs recursively

I wanted to do this:

from bakery.views import BuildableTemplateView
from django.core.urlresolvers import reverse

class MooView(BuildableTemplateView):

template_name = "moo.html"

@property
def build_path(cls):
return '/'.join((reverse('moo')[1:], "index.html",))

but moo's url was something like `/case-studies/moo/` so I made the dirs recursively by using `os.makedirs` instead of `os.mkdir`.