Re: python code in template

2007-10-15 Thread Malcolm Tredinnick
On Mon, 2007-10-15 at 14:54 -0700, johnny wrote: > Is there a way to run python code in the template? No. You'll find that's pretty much the guiding principle of the Django templating language: it's for designers, not Python programmers and there's no variable changing permitted. If you need to

python code in template

2007-10-15 Thread johnny
Is there a way to run python code in the template? In view, I just fetchall from database and pass it to the template But I found out I need to break up the content in one of the field. As each records are looped inside the template, I need to break up a field and display it. --~--~-~