Reputation: 527
i'm at the stage of learning Django and trying to get my web app running. After getting through tutorial, I really don't like the template system (no python code allowed). Can I replace it with another, like Mako or something else ? Or maybe there are better web frameworks than Django , and by better i mean less built-in functions more things to customize, like my own form validation ? Maybe it's possible without messing with widgets which will put too much display logic into controller and will cause code repetition
Upvotes: 1
Views: 232
Reputation: 11686
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
Upvotes: 2