Re: [python-uk] hexagonal Django

2012-12-04 Thread Menno Smits
On 2012-12-04 14:46, Jonathan Hartley wrote: I haven't, yet, but I'm thinking of refactoring a vertical slice of our monster Django app into this style, and I'd love to hear if you think it's crazy / brilliant / obvious / old-hat, etc. Since you mentioned this a few weeks back, I've been think

Re: [python-uk] hexagonal Django

2012-12-04 Thread Daniel Pope
I go a little way in this direction. I rarely go as far as dependency injection for business logic, but a good habit I picked up is to ensure that my business logic is put in appropriate places somewhere other than view functions, and all queries are kept with the models (ie. as Manager methods), a

[python-uk] hexagonal Django

2012-12-04 Thread Jonathan Hartley
The last few weeks I've been thinking about the architectural pattern known as Clean, Onion, Hexagonal, or Ports'n'Adaptors (http://blog.8thlight.com/uncle-bob/2012/08/13/the-clean-architecture.html). I'm curious if man