Re: File/Code Structure

2012-12-27 Thread Jonathan
You're welcome, Omar. It sounds like you beat me to the punch with inclusion tags! I can't provide an "official" answer on the topic, but I do this very practice on all of my projects. As long as the logic is contained within the appropriate app, I have no problem importing a templatetag at that la

Re: File/Code Structure

2012-12-27 Thread Omar Abou Mrad
On Wed, Dec 26, 2012 at 6:07 PM, Jonathan wrote: > I think you've got the right idea with regard to structure and > separation of concerns, and my next step would be to write 'recent polls' > as an inclusion tag so that it can be reused on various templates that > aren't necessarily directly conc

Re: File/Code Structure

2012-12-26 Thread Jonathan
I think you've got the right idea with regard to structure and separation of concerns, and my next step would be to write 'recent polls' as an inclusion tag so that it can be reused on various templates that aren't necessarily directly concerned with the polls app. This allows you to maintain the i

File/Code Structure

2012-12-26 Thread Omar Abou Mrad
Greeting friends, Let's assume I have a poll app. This 'poll' app uses some generic models which have been tossed into a 'core' app (ie: Category). Everything concerning the 'poll' app is working fine, but now i'd like to create an index page for the entire site. My first intuition was to make the