# Path: djam/views/generic.py
# class FormView(FloppyformsMixin, RiffViewMixin, generic.FormView):
#     pass
# 
# class TemplateView(RiffViewMixin, generic.TemplateView):
#     pass


from django.http import HttpResponseRedirect
from djam.views.generic import FormView, TemplateView
from test_project.example_app.forms import HelloWorldForm



class HelloView(FormView):
    form_class = HelloWorldForm
    template_name = 'djam/form.html'

    def form_valid(self, form):
        url = self.riff.reverse('hello_finished',
                                slug=form.cleaned_data['name'])
        return HttpResponseRedirect(url)



# Path: djam/views/generic.py
# class FormView(FloppyformsMixin, RiffViewMixin, generic.FormView):
#     pass
# 
# class TemplateView(RiffViewMixin, generic.TemplateView):
#     pass


# Path: test_project/test_project/example_app/views.py
from django.http import HttpResponseRedirect
from djam.views.generic import FormView, TemplateView
from test_project.example_app.forms import HelloWorldForm




class HelloView(FormView):
    form_class = HelloWorldForm
    template_name = 'djam/form.html'

    def form_valid(self, form):
        url = self.riff.reverse('hello_finished',
                                slug=form.cleaned_data['name'])
        return HttpResponseRedirect(url)



class HelloFinishedView(TemplateView):