Re: website side component processing

2008-01-28 Thread Emil
I think you should have a look at inclusion tags, they're basically tailored for this type of thing: http://www.djangoproject.com/documentation/templates_python/#inclusion-tags If you find template tags an option: another great article by James Bennet, that goes through a lot of the basics of wri

Re: website side component processing

2008-01-28 Thread [EMAIL PROTECTED]
Definitely! It may be a little bit more work upfront, but you get more fine-grained control that way. On Jan 28, 5:28 am, code_berzerker <[EMAIL PROTECTED]> wrote: > I just got new idea that maybe I should use custom template tags to > call processing of all common subpage components. That would

Re: website side component processing

2008-01-28 Thread code_berzerker
I just got new idea that maybe I should use custom template tags to call processing of all common subpage components. That would be even more efficient and flexible, because I could have many different premade templates to choose from in admin panel and each of them having different set of compone

website side component processing

2008-01-27 Thread code_berzerker
I'm quite new to django/python (migrating from php). I've been developing cms-like web applications for years now. Now I'm trying to create quite advanced CMS using django. Lately I moved from doing simple tests in django to tearing other peoples django apps into pieces to get the idea of best pra

Re: website side component processing

2008-01-27 Thread [EMAIL PROTECTED]
I think that what you're looking for is context processors. James Bennett has an excellent writeup [1] that I'd suggest looking at. [1] http://www.b-list.org/weblog/2006/jun/14/django-tips-template-context-processors/ On Jan 27, 5:29 pm, code_berzerker <[EMAIL PROTECTED]> wrote: > I'm quite ne