Organizing/Loading components on a home page using python

11 views
Skip to first unread message

Waqar Azeem

unread,
Dec 18, 2011, 11:09:29 AM12/18/11
to Django users
I don't know from where to start to ask this question.

I need to create a HOME page with multiple components, like • News •
Products • Forum Topic • Ads and so on.

The little knowledge that i have accumulated on Django forced me to
start using the templates, because I didn't find small, reusable and
largely independent components creation support in Django that could
render itself. Or even simple web-controls that could be managed and
extend from python code for example how can I create my Calendar
control and more important how can I extend it.

Due to my limited study so far, I started to slice the home page into
multiple templates derived from the base.html; and put some views
function for each derived template.

Now I am puzzled that when a user hits the home page then, HOW should
I start the sequence of the components loading one by one in a view
function. how should I organize the code.

-- Waqar

creecode

unread,
Dec 18, 2011, 11:35:58 AM12/18/11
to django...@googlegroups.com
Hello Waqar,

It sounds like you are looking for something like Drupal. Although I've not used it myself I think Drupal has an architecture like you describe.

Django is a web framework it is not a website builder with auto-configuring modules.

Don't get me wrong.  Django is a fantastic web framework and you could can build almost anything you desire.  It's just a bit lower level tool than what you describe you are looking for.

Toodle-looooooooooo...........
creecode

Kristian Øllegaard

unread,
Dec 18, 2011, 1:23:50 PM12/18/11
to django...@googlegroups.com
Hi Waqar,

Check out django-cms - you are probably looking for a CMS. There are other django based CMSes as well, but personally I only had experience with the django-cms, which worked great for my usecases. Here you can make cms plugins that you can rearrange directly on the page itself, using a toolbar provided by the CMS.

Good luck with your project.

Regards,

Kristian
Reply all
Reply to author
Forward
0 new messages