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 do stuff like this, you're encourage to write your own
template tag that accepts the data as an argument and returns the
result.

Regards,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to