Re: django-reroute: a drop-in replacement for django.conf.urls.defaults that supports HTTP verb dispatch and view wrapping.

2010-12-10 Thread Mark Sandstrom
Getting started is as simple as: ... easy_install django-reroute, or pip install django-reroute ;) - Mark On Fri, Dec 10, 2010 at 4:12 PM, Mark Sandstrom wrote: > Hello all, > > This is a pretty common pattern in django: > > def view(request): > if requ

django-reroute: a drop-in replacement for django.conf.urls.defaults that supports HTTP verb dispatch and view wrapping.

2010-12-10 Thread Mark Sandstrom
Hello all, This is a pretty common pattern in django: def view(request): if request.method == 'GET': # Do something elif request.method == 'POST': # Do something else else: return HttpResponse(status=405) The setup for GET vs POST may be very different, and th

A replacement for fixtures

2010-08-22 Thread Mark Sandstrom
Hello all, I've created a test fixtures replacement named factory_boybased on thoughtbot's factory_girl for Ruby. Factories are extremely maintainable and can make tests more readable. The framework can be used for any Python project, and Django support is inc