Re: A few beginner questions

2011-01-10 Thread derek
Just one point of clarity - the intention is clearly for apps to be small and focused and "do one thing well". Like much of Python, of course, you as a developer can abuse this to your heart's content and create humugenous and unwieldy code bases. (Pinax, incidentally, is not an "app", but a

Re: A few beginner questions

2011-01-10 Thread derek
Apps vs Projects There is probably no one better to address this topic than James Bennet - see: http://www.b-list.org/weblog/2008/feb/11/integrity/ (e.g. "when Django first appeared I was playing with Rails, and the available options for this sort of reusable functionality in Rails all, frankly,

Re: A few beginner questions

2011-01-08 Thread Mike Ramirez
On Saturday, January 08, 2011 02:07:22 am Ondřej Mirtes wrote: > Thank you all for your responses. > > I have one more question - what is the purpose of "apps" in > "projects" (when I create new app in a project via manage.py > startapp)? Are they something like sections of a web (articles,

Re: A few beginner questions

2011-01-08 Thread Mike Thon
I've had this question too, when I'm designing a project. So far, I have dumped all of my own code into the one app that I create for the project and then add external apps that can be found on the internet to extend my project's functionality. For example, I needed to download articles from

Re: A few beginner questions

2011-01-08 Thread Ondřej Mirtes
Thank you all for your responses. I have one more question - what is the purpose of "apps" in "projects" (when I create new app in a project via manage.py startapp)? Are they something like sections of a web (articles, forum, user administration?) or are they rather something like modules,

Re: A few beginner questions

2011-01-07 Thread derek
Re: " I would like to read about some best practices about midsize and large Django projects." I would recommend first implementing a small-ish but meaningful (i.e. something that addresses a Real World problem, and that you will actually use) project; that way you will see the overall structure

Re: A few beginner questions

2011-01-07 Thread derek
Re: "inversion of control" in Python - look at: http://plope.com/control_inversion http://code.activestate.com/recipes/413268-dependency-injection-the-python-way/ http://blog.code.zaubersoftware.com/2009/04/controlfreak-python-inversion-of.html On Jan 5, 12:06 am, Ondřej Mirtes

Re: A few beginner questions

2011-01-05 Thread Scott Gould
On Jan 4, 9:38 pm, Shawn Milochik wrote: > Hi Ondřej. > > ... > #2: The validation should all be done during form validation[2], prior to > save. Using a Form or ModelForm. That way, the user can get friendly, useful > errors. Further to this, look into model validation if

Re: A few beginner questions

2011-01-04 Thread Shawn Milochik
Hi Ondřej. For your question #1, you could create a field in the model itself and then use signals[1] to populate it upon the saving of a "vote" instance. #2: The validation should all be done during form validation[2], prior to save. Using a Form or ModelForm. That way, the user can get

A few beginner questions

2011-01-04 Thread Ondřej Mirtes
Hello, I am experienced PHP developer (and by PHP I mean advanced programming with MVC frameworks, TDD, ORM libraries, design patterns and such, so no scoffing please :)) and I would like to try something new. I've chosen Python and Django and I am building my bachelor thesis project with it. I