2👍
✅
Django templates have a good philosophy. Don’t put code in them. If you can freely code there, it ends up like an anarchy (if you’ve ever coded PHP, you know what i’m talking about).
Said that, if you want to switch, I recommend you to use Jinja. Here’s a great post by @dcramer: http://justcramer.com/2008/03/29/using-jinja-with-django/
There are projects built to support it, like this one: https://github.com/niwibe/django-jinja
Source:stackexchange.com