Re: business logic and good practices

2008-05-20 Thread Norman Harman
bcurtu wrote: > Hi, > > The reason you must place your templates out from your app code is > because if you don't do that, anyone could access to the code via > browser. Just writing the path of your files, and they have the code. > It could be a security issue. That is not the reason, and if yo

Re: business logic and good practices

2008-05-20 Thread Gene Campbell
Hi, Thanks the for the reply. > The reason you must place your templates out from your app code is > because if you don't do that, anyone could access to the code via > browser. Just writing the path of your files, and they have the code. > It could be a security issue. Umm, if it doesn't matc

Re: business logic and good practices

2008-05-20 Thread bcurtu
Hi, The reason you must place your templates out from your app code is because if you don't do that, anyone could access to the code via browser. Just writing the path of your files, and they have the code. It could be a security issue. About your managers.py file, it's OK to decouple logic from

Re: business logic and good practices

2008-05-19 Thread ristretto
Hello, I'm going down the same adoption path. Coming over from Java skipping and happy. I'm fighting (and loosing) the urge to create a manager.py that will basically hold business logic and interface with the models. Additionally, I have read the unit testing documentation, and I want to make s

Re: business logic and good practices

2008-04-04 Thread Doug Van Horn
I haven't found any 'best practices' for Python other than PEP-8 or the older http://www.python.org/doc/essays/styleguide.html. Django kind of pre-defines a general best practice of project layout, but anything outside of models, tests & fixtures, templatetags, et. al. is up to you (views and set

Re: business logic and good practices

2008-04-03 Thread bcurtu
Thanks Doug, Well, yes, I think it's pretty easy to switch to this philosophy, even it's hard to come back to java again! I will follow my model 1, because it's generic code and it could be reusable. What about a good practices reference guide... Any suggestion? On Apr 3, 4:54 pm, Doug Van Hor

Re: business logic and good practices

2008-04-03 Thread Doug Van Horn
On Apr 3, 9:19 am, bcurtu <[EMAIL PROTECTED]> wrote: > Hi again, > > I come form j2ee world, this is my first project in Django and usually > I feel a bit lost about general concepts. > > My project has bit too much business code, it's a kind of datamining > tool. I have created a set of functions

business logic and good practices

2008-04-03 Thread bcurtu
Hi again, I come form j2ee world, this is my first project in Django and usually I feel a bit lost about general concepts. My project has bit too much business code, it's a kind of datamining tool. I have created a set of functions but I'm not sure where the "best practices" say I should place