I almost hate to bring this up, but we are reading Eric Evan's book "Domain 
Driven Development" at my company in our technical bookclub and some 
techniques in the book seem to be hard to apply in DJango. The main one 
being the notion of aggregations:

>From  http://martinfowler.com/bliki/DDD_Aggregate.html
"Aggregate is a pattern in Domain-Driven Design. A DDD aggregate is a 
cluster of domain objects that can be treated as a single unit. An example 
may be an order and its line-items, these will be separate objects, but 
it's useful to treat the order (together with its line items) as a single 
aggregate.

An aggregate will have one of its component objects be the aggregate root. 
Any references from outside the aggregate should only go to the aggregate 
root. The root can thus ensure the integrity of the aggregate as a whole."

Can we actually enforce this in django?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/aa759e76-0192-4103-89c7-0001ed666f26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to