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
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.
--~--~-~
2 matches
Mail list logo