Search results

Matches found for tag 'Jinja2': 3

28 September 2019 Updated 11 October 2019 by Peter
post main image
Update 11 October 2019: I changed the addon-tag from '{% addon: ... %}' to '[[ addon: ... ]]'. The reason is that I wanted to be able to render the page text coming from the database, using render_template_string, and '{% ... %}' conflicts with Jinja2 tags. And yes, I do not want to implement a Jinja2 custom tag.  What is difficult about implementing a contact page with a contact form with Flask ...
Read more
15 September 2019 Updated 15 September 2019 by Peter
post main image
Before you read on, you may want to read my previous posts about multilanguage and language fallback, see links below. When I gave myself the assignment to develop and implement a multilanguage Flask website with SQLAlchemy I knew things could get difficult. I did not really took the time to design everything beforehand, I just read a lot about multilanguage on the internet and trusted my experience ...
Read more
29 August 2019 Updated 30 August 2019 by Peter
post main image
Objects, it is nice to build an application with them but it has one very big disadvantage: it can be very slow because of the extra CPU-cycles and all the extra memory used. The slowdown of course is very much caused by the extra mapper layers and extra data.  Should you care about performance? Yes! The admin part of an application does not have to be very fast but the frontend pages, the pages ...
Read more