Thursday, December 18, 2014

Re: Database queries location

I usually put those functions in the view
cheers
L.

On 19 December 2014 at 08:12, pythonista <software.by.python@gmail.com> wrote:
> I understand that functions can be placed in the models fille
>
> However if I have complex queries that receive post input does the
>
>
> Query live in the model the views or an external module
>
> --
> 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+unsubscribe@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/45f5d942-2ede-49bb-8ec1-d5a2486bd656%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
------
"We are at once both obnoxious and indispensable." - John Ngumi on the Kikuyu
in It's Our Turn To Eat, by Michela Wrong.

--
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+unsubscribe@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/CAGBeqiNoWsSSgZ4-xyWtH%3DoyxVVwWSYihbAsK2XFXbbPwtAORw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment