views:

32

answers:

1

I'm not familiar with django conventions at all so if you do provide advice could you be specific

Considering my homepage would contain components of articles:

http://i.imgur.com/bX7lX.gif

In Zend, in my IndexController I would create models and populate the view with articles and data. What's a convention/structure I could use for the homepage view ( should I create a separate directory for home, dump a view.html file in it? or do I create a sub-application? ), how would you set your django structure up to accommodate this?

+2  A: 

The basic component of a Django project is the application. Each app contains models, views, templates, template tags, and filters relevant to its portion of the project. The index view imports/uses resources from other apps to get its work done. Think of the homepage as parts brought into a whole, and put each independent part in its own application.

Ignacio Vazquez-Abrams
Well, can you demonstrate using the content in the image at least how you should go about personally setting up the homepage? At least so I can get an idea somewhat.
meder
Have an `articles` app that has the model for articles, as well as a manager and templates for specific types of articles, and then have a `frontpage` app that has the main template that includes the article templates for display.
Ignacio Vazquez-Abrams