Questions tagged as 'jinja2'

2
answers

Conflict between Jinja and Handlebars

How do I resolve a conflict between Handlebars and Jinja, since the syntax of both are similar?     
asked by 26.11.2015 / 20:07
1
answer

How to repeat a block of Jinja2?

I'm using Jinja2 as a template engine for generating a static HTML site in a Python script. I want to repeat the contents of a block ( title ) in the layout template ( layout.html <html> <head> <title>{% block title...
asked by 03.01.2014 / 22:05
1
answer

Many-to-Many: Django Template and Template

I have the following situation: - Budget - Product - Budget Items I searched for the Many-to-Many relationship in Django (1.10), so create a Template a Multi-Select. But if I need to, for example, inform the quantity of the product in t...
asked by 21.11.2016 / 15:23
1
answer

FLASK - Change goable in template

I passed the template a variable and need to change (in the template) the value of it. Ex: no controller: return render_template('index.html', start_code = start_code) . I need to change start_code there in the template. How do I?...
asked by 01.11.2018 / 13:30
1
answer

Google App Engine project Python works on localhost but gives server error

My project is running perfectly on localhost but when I do deploy and access it gives the following error: Here is my code: import os import jinja2 import webapp2 import json from google.appengine.ext import db from google.appengine.api i...
asked by 23.12.2016 / 20:37
2
answers

ELIF using not in, within a FOR

I would like to know if there is any way to refine the ELIF within a FOR, so that it does not enter in the FOR whenever the date does not exist, but rather if that date does not exist. Here's the problem: For each meeting date {%for u in...
asked by 08.11.2018 / 00:37