Make dirs recursively #13

Merged
merged 1 commit into from Dec 7, 2012

Projects

None yet

2 participants

@mmmoli
Contributor
mmmoli commented Dec 2, 2012

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.

@palewire palewire merged commit b19d025 into datadesk:master Dec 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment