While some of us are blessed with fixed IP addresses, some ISPs don’t offer this option unfortunately. If you’re using the Django INTERNAL_IPS setting to show or hide the debug toolbar this can be a problem. Luckily the Django settings.py files are pure Python and it’s easy enough to work around this issue with a […]
Archive | django
RSS feed for this section
Django template tags within Jinja2
In some cases it can be useful to enable Django tags within your Jinja2 templates, for example… when you are converting your templates but still have some legacy tags/filters that don’t support Jinja2 or if you are using a project without Jinja2 support. Luckily, that’s not too difficult to achieve with Jinja2, actually a lot […]
Mixing Django with Jinja2 without losing template debugging
At Fashiolista we’ve build nearly the entire site with Jinja instead of the Django template engine. There are a lot of reasons for choosing Jinja2 over Django for us. Better performance (atleast… it was a lot better with previous Django versions), way more options (named arguments, multiple arguments for filters, etc), macros and simply easier […]
Recent Comments