I’ve been developing in the Symfony framework for quite a time, but now I have to work with Django and I’m having problems with doing something like a “component” or “partial” in Symfony.
That said, here is my goal:
I have a webpage with lots of small widgets, all these need their logic – located in a “views.py” I guess. But, how do I tell Django to call all this logic and render it all as one webpage?
It sounds like what you’re looking for is something like custom template tags…
You can write your own set of tags that process custom logic and return template chunks that are reusable in a very widget-like way.