On 12/27/06, Don Arbow <[EMAIL PROTECTED]> wrote:

On Dec 27, 2006, at 5:44 PM, Jason C. Leach wrote:
> Specifically, I'm curious how you do it without putting SQL in the
> view. From what I understand about the methodology of MVC this should
> not be done.


I would only worry about that if you are concerned about
maintainability or want to avoid duplicating a query in more than one
view. In that case you could just create a Python file containing SQL
queries and import them where you need them.

I think he's just asking how to use the Django DB API to do
cross-table queries.  The MVC theory is a secondary justification for
his curiosity.

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

Reply via email to