Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread Pedro Brandao
Hi André. In Django, the presentation is handled by means of templates (in other words, the "View" of the MVC). What we call "views" in Django actually correlate more closely to the "Controller" of the MVC. Take a look at the link Xavier posted, it explains the terminology better. If you still

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread Kenneth Gonsalves
On Wed, 2010-08-04 at 21:42 -0500, Michael Hipp wrote: > On 8/4/2010 7:47 PM, André A. Santos wrote: > > wow this is different to me because Java is different follows MVC... > > so, the business rules stay on View (GUI)? > > All the view does is create the http response. If the particular >

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread Michael Hipp
On 8/4/2010 7:47 PM, André A. Santos wrote: wow this is different to me because Java is different follows MVC... so, the business rules stay on View (GUI)? All the view does is create the http response. If the particular request requires any significant business logic, I would put that in a

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread Kenneth Gonsalves
On Wed, 2010-08-04 at 21:47 -0300, André A. Santos wrote: > wow this is different to me because Java is different follows MVC... > so, the business rules stay on View (GUI)? views is not gui - what views do is get/put data from/to the database and also process the data either for presentation or

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread André A . Santos
wow this is different to me because Java is different follows MVC... so, the business rules stay on View (GUI)? On Wed, Aug 4, 2010 at 9:11 PM, Kenneth Gonsalves wrote: > On Wed, 2010-08-04 at 12:02 -0300, André A. Santos wrote: > > for exemple using MVC parttern how it works

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread Kenneth Gonsalves
On Wed, 2010-08-04 at 12:02 -0300, André A. Santos wrote: > for exemple using MVC parttern how it works -> > > M - model (Python) > V - view (JSP) > C - controller (Django or also Django on Model tier?) no this is not correct. django follows the Model View Template roughly: database structure

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread Kenneth Gonsalves
On Wed, 2010-08-04 at 11:04 -0300, André A. Santos wrote: > hmmm... > Dr thanks for answering... my doubt is if is better put the business > rules > code on Python or Django... got it? let us put it this way: in java programming, where do you put the business rules? -- regards Kenneth

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread André A . Santos
wow thank you so much... you have helped me a lot... AS On Wed, Aug 4, 2010 at 3:48 PM, Renne Rocha wrote: > André, > > It seems that you don't understand what Django is. Your question > make no sense. > > Take a look at this website: www.aprendendodjango.com/ (it is in

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread Renne Rocha
André, It seems that you don't understand what Django is. Your question make no sense. Take a look at this website: www.aprendendodjango.com/ (it is in portuguese) It will explain what Django is and what you can do with it. On Wed, Aug 4, 2010 at 12:02 PM, André A. Santos

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread André A . Santos
thanks On Wed, Aug 4, 2010 at 12:28 PM, Xavier Ordoquy wrote: > This relates to: > >

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread Xavier Ordoquy
This relates to: http://docs.djangoproject.com/en/dev/faq/general/#django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names Le 4 août 2010 à 17:02, André A. Santos a écrit : > for exemple using MVC parttern how

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread André A . Santos
for exemple using MVC parttern how it works -> M - model (Python) V - view (JSP) C - controller (Django or also Django on Model tier?) On Wed, Aug 4, 2010 at 12:00 PM, André A. Santos wrote: > now i got it... thx > > > > > On Wed, Aug 4, 2010 at 11:09 AM, Masklinn

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread André A . Santos
now i got it... thx On Wed, Aug 4, 2010 at 11:09 AM, Masklinn wrote: > On 2010-08-04, at 16:04 , André A. Santos wrote: > > hmmm... > > Dr thanks for answering... my doubt is if is better put the business > rules > > code on Python or Django... got it? > > > As Daniel

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread Xavier Ordoquy
Hi, You're asking if you'd rather put all the business logic in pure python classes or django models ? I'm not sure there's a straight answer to this, esp with no information about what you're trying to do. Regards, Xavier. Le 4 août 2010 à 16:04, André A. Santos a écrit : > hmmm... > Dr

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread Masklinn
On 2010-08-04, at 16:04 , André A. Santos wrote: > hmmm... > Dr thanks for answering... my doubt is if is better put the business rules > code on Python or Django... got it? > As Daniel indicated, your question doesn't make sense. Django is Python, that's like asking whether you should write

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread André A . Santos
hmmm... Dr thanks for answering... my doubt is if is better put the business rules code on Python or Django... got it? On Wed, Aug 4, 2010 at 10:50 AM, Daniel Roseman wrote: > On Aug 4, 2:38 pm, André A. Santos wrote: > > Hello friends, > > this

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread Daniel Roseman
On Aug 4, 2:38 pm, André A. Santos wrote: > Hello friends, > this is André AS from São Paulo-Brazil, total beginner to Python > technologies, I am working on a project that uses those we are > converting all those to Java, so I would like to know where I must put the >

Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread André A . Santos
Hello friends, this is André AS from São Paulo-Brazil, total beginner to Python technologies, I am working on a project that uses those we are converting all those to Java, so I would like to know where I must put the logic rules I am a little confusing if I must put on Python or Django code...