Skip to main content

All Questions

Tagged with
0 votes
1 answer
43 views

letters do not display correctly after flask redirect

Live site: https://charlie-project3-aebf005f6451.herokuapp.com/viewlib repo: https://github.com/Tropicalbunny/FLASK i am having an issue where my hangman page is not displaying the revealed letters (...
TROPICALBUNNY 's user avatar
2 votes
1 answer
36 views

How to display average ratings in the form of stars in django

I want to display the average rating on a product in the form of stars where i want to have 5 stars and then fill the stars with gold color on how much the average rating on the product is. This is my ...
Raja Shirjeel's user avatar
0 votes
0 answers
19 views

plotly plots not being displayed when data given through javascript in flask application

I am having a html code with dropdown and a plotly plot (comes from python's flask route). I need to update the plot based on the values selected in a dropdown (trying for single selection now). I am ...
uma_8331's user avatar
0 votes
1 answer
53 views

"jinja2.exceptions.TemplateNotFound" error when attempting to access JavaScript file

I'm trying to pass an array into a javascript file (taskTableDip.js) to later create a table in a HTML file (supportDash.html), however for some reason Flask keeps throwing jinja2.exceptions....
PyOrion's user avatar
  • 15
0 votes
1 answer
88 views

Pagination of pages

I have been looking for an answer for a long time how to implement pagination on the site, I use only Python and its frameworks. Is it even possible to do this? If so, how to use the jinja template ...
wicki77's user avatar
  • 15
0 votes
0 answers
36 views

How to pass dictionary values from jinaja template to javascript

I need to display a size drop down in jinja template and on change of option, I want to display an image from the dictionary. I am passing the entire dictionary to a javascript function but getting ...
Sajjad's user avatar
  • 133
0 votes
0 answers
22 views

I need the success swa to be shown when entering the password correctly

js document.addEventListener("DOMContentLoaded", function () { const botonGuardarCambios = document.getElementById('botonGuardarCambios'); botonGuardarCambios....
marcelo nicolas iza garzon's user avatar
0 votes
0 answers
111 views

Live update of html content without refreshing page

So I'm trying to make simple Flask web where I'd display crypto prices, which I get from api. My problem is that I have no idea how to keep live updating prices without refreshing website. I've been ...
xyres's user avatar
  • 15
0 votes
1 answer
58 views

checkbox in list view in django template , retrieve all checked box objects in each pagination to view of Django (server)

I have checkbox in list view and contains pagination in html template. I want to retrieve the all checked box objects in each pagination to server (view part of Django) . Example in page 1 , if i ...
Obedulla Desai's user avatar
0 votes
0 answers
20 views

Arrows for carousel

I have the carousel with images from django <section class="container"> <div class="slider-wrapper"> <div class="slider"> {% for ph in ...
lavosami's user avatar
0 votes
1 answer
146 views

Render forms conditionally on checked radio button - Jinja2 templates - FastAPI

I'm pretty new to both Jinja templating and javascript; I'm trying to build an application in FastAPI which renders some Jinja templates. I have added a pair of radio buttons to my template and I ...
amiola's user avatar
  • 2,916
0 votes
1 answer
46 views

update the 'div' after ajax request

This is my first project in django. I'm new to Django, ajax, javascript. I have to send the data to jinja template after making ajax request. My index.html is {% if data %} <p>{{data.title}}&...
Dina's user avatar
  • 3
0 votes
1 answer
206 views

Rendering HTML Paragraph <p> with nested <b> Bold decorators with Jinja template/Flask

I am looking to create a function that removes words from a sentence and then replaces the removed words with other words sourced from a dictionary API search. Pretty simple, here is the function that ...
Sean.realitytester's user avatar
0 votes
1 answer
55 views

flask app - how to interactively select image path from template?

I have large image collections on my local NAS (microscopy images of cultured cells for scientific purposes). With the goal to compare subsets of images (some 10-20 at a time), I wrote a flask app ...
pmeran's user avatar
  • 41
1 vote
0 answers
54 views

How do I make my javascript function wait until after a fetch request returns before refreshing

I am trying to make a basic note taking app using Flask as a backend and Jinja/Javascript for front end when I click the "Add Note" button, a javascript function runs which uses a fetch post ...
Benpai's user avatar
  • 29

15 30 50 per page
1
2 3 4 5
24