I am using Jinja with flask and im trying to go over a list with a for statement but it shows nothing in the main view. Here is the HTML code: <d ...
I am using Jinja with flask and im trying to go over a list with a for statement but it shows nothing in the main view. Here is the HTML code: <d ...
An error occurs. I tried to alternate booleanfield and integerfield, but this error occurs. I really dont know why it happened, i try to do thi ...
I would like to use jinja logic in my template: I've already tried true without '' and instead of true is defined but still no success. The logic i ...
this is my code i want to give different colors to comments like grey(#eee) to odd and blue (#e6f9ff) to even here this line is giving me error b ...
I'm trying to write a json file with a list of ip addresses formatted as "http://{ip_address}:{port}" as a part of an ansible playbook. I'm able to ge ...
I'm creating a master events table, where almost all of the same columns are in every table, but a few tables are missing one or two columns. In those ...
I want to develop a macro that will loop rows from a seeding query's result and create a dynamic query for another task. Let's assume my row would be ...
I have some data store in the database In boolean. I want to check if the value is True pick the value and perform some action on it. But this does ...
I have an html page that displays documents and their preview sorted by their pagerank value. I want to make it so that when the user clicks a documen ...
I have 2 lists I'm passing to a Jinja template: The first list I have divided into 3 clusters of 3, 3 and 6 app_machines. The template for that loo ...
I'm using Ansible to retrieve a list of website we host over 50+ servers. I'm using a SQL query to store in a text file named as hostname_websites.txt ...
I have vars like this: And need to get config file like this: I have loop in my jinja2 template: And in this loop i have 2 problems: 1 - how ...
I have a dict from a json API call that looks like this: To reference the nested items inside bodyContent, I'm doing a loop within a loop (to get a ...
I'm having the following jinja template: In my task, I have the following: I get an error like this: Is there anything that I'm missing here? ...
I need to display the information if the date given is in the future. Is there a way to do this in a template? I found out I should compare them as t ...
In Ansible, is it possible to output a list of dictionaries in pretty print YAML with flow style mapping? Example of source list of dict: my_servers ...
I need to assert the policy-maps from Cisco devices. And Cisco for some reason adds trailing whitespaces on some lines, but not all. I want to remove ...
I'm bit new to Airflow and was exploring creation of multiple DAGs that have more or less same code from a template instead of creating them as indivi ...
I am trying to develop a dbt macro using jinja-sql to create a template for my base hub models. How do I get my hardcoded fields directly underneath m ...
I try to build elasticsearch cluster with ansible and I have a problem with jinja2. How can I set in jinja2 IP addresses of other hosts? I have in m ...