Skip to main content

All Questions

Tagged with
0 votes
0 answers
25 views

In Flask, is it possible to redirect to a URL fragment? [duplicate]

In Flask, I have main/routes.py using Flask blueprints from flask import render_template, request from app.main import bp @bp.route('/') def index(): return render_template('index.html') In ...
martin1959's user avatar
1 vote
0 answers
59 views

Ck-editor field rendering in HTML to PDF template in Django

CK-editor field not rendering in HTML to PDF template, in my django web application. Using ck-editor in my Django application. models.py full_question = RichTextUploadingField(null=True, blank=True) ...
mudassar kamal's user avatar
-1 votes
1 answer
182 views

Getting error: jinja2.exceptions.TemplateSyntaxError: expected token 'end of print statement', got '='

i am trying to set select field choices using jinja in html but getting error. can someone help me with the mistake i am making in writing {{ seat_form.seat.choices = Available_seat_lst }} line of ...
Shabir shah's user avatar
2 votes
1 answer
1k views

Python / Jinja2 - Trouble rendering list generated through python using HTML Syntax (Django)

Just learning python, Jinja and all, your help would be great! My Python program pulls data and put it into list form. My goal is to display three parts of each line of data in an html table online. ...
juju's user avatar
  • 994
0 votes
1 answer
97 views

Jinja2 renders empty HTML elements

I've used the following Jinja2 code to render variables into an HTML select form from a list in Python 3: <select name="update_id" id="update_id"> {% for id in ids %} <option value="{...
Exequiel Bahamonde Cárcamo's user avatar
2 votes
1 answer
2k views

Render_template second time after page is already loaded

I am trying to query a database through my website and dynamically add columns with the results using Jinja templates. I am using flask and on my views function. I am rendering the values like this ...
PetrosM's user avatar
  • 251