Inside a django template I\'m trying to call the split function on one of the template variables and then get the last element, so I did something like this:
{{
Yes, as others have said, you shouldn't really be doing it in the templates.
But if you want to, then you need to define a filter and load it in the template and use it.