On 19 fév, 15:38, Wiiboy <jordon...@gmail.com> wrote:
> And the explicit vs. implicit imports: Personally, I love the fact
> that the request object is available all over the place, including
> models, and that I don't have to do any importing.

As far as I'm concerned, it's a definitive No-No. The request is only
meaningfull in the context of a request handler (whether you call it
'view' or 'controller'). The model part must *not* depend on it. And
it's not a dogmatic POV - it's based on working experience with
frameworks that happily mixed orthogonal concerns and ended being a
major PITA.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to