Skip to main content

All Questions

Tagged with
-2 votes
1 answer
57 views

im working on a django project as a total beginner . block content end block is not working and the browser renders raw code

here is my directory ![workspace] .core ---templates -- core - base.html -frontpage.html ![base.html] <title>{% block title %}{% endblock %}Djangochat</title> ![frontpage.html] {% ...
Ash Lyn's user avatar
2 votes
0 answers
765 views

Django render_to_string not including certain context variables when rendering

I have searched here and not found anything so far that helps. When using render_to_string and providing context variables, one of these variables gets used by the template as expected, however, ...
Nathaniel Hoyt's user avatar
0 votes
2 answers
160 views

Get a grip of row heights in QTableView with HTML rendering

Here's an MRE: import sys from PyQt5 import QtWidgets, QtCore, QtGui class MainWindow(QtWidgets.QMainWindow): def __init__(self): super().__init__() self.setWindowTitle('Get a ...
mike rodent's user avatar
  • 15.8k
1 vote
1 answer
39 views

An issue making addition through models.py making a simple calculation

Hello guys im practicing on django by now developping a simple expense tracker for a main project expample: Buying a flippable car for X amount and adding all the other expenses to get a single total. ...
Othniel Lafond's user avatar
1 vote
1 answer
449 views

html-requests, skip if TimeoutError when rendering HTML

I am working on a webscraping script using HTML requests. I scrape the URLs then run through them and commit to a database. I have been able to scrape the links and created a for loop which renders ...
need_halp's user avatar
  • 115
0 votes
2 answers
347 views

How can I make Django render in the browser?

I'm trying to utilize Django forms.ModelForm function. However, I can not get it to render in the browser (Firefox and Chrome tested). In both browser inspection of code, the table\form does not show ...
user1682104's user avatar
0 votes
2 answers
802 views

django widget tweaks form control not action

when Making django board, I met the problem. django version is 3. I wanted form like this. but my code can't alert me "This field is required" But widget tweaks form-control wasn't working. which ...
hyuk's user avatar
  • 59
0 votes
2 answers
260 views

Scrape dynamic javascript content webpage using python

I am trying to scrape this website: 'https://ec.europa.eu/research/mariecurieactions/how-to/find-job_en' using Python. First I noticed that the table I am interested in is actually at this url: https:...
sir_olf's user avatar
  • 11
0 votes
2 answers
4k views

Receiving error; AttributeError: 'NoneType' object has no attribute 'app' while using render_template in return statement

I am trying to display the plotted figure using the web browser. But the render template in return statement is throwing error. Below is the code used and the error received. The python code: from ...
Shanmukha Reddy's user avatar
-2 votes
2 answers
411 views

How to fix rendering issues in Python script

I have written a python script that reads a csv file and displays it on a web page. The web page is a simple html. I am trying to display it with a certain format. I have searched through ...
ana's user avatar
  • 21
-3 votes
2 answers
387 views

How to get Html code after crawling with python

https://plus.google.com/s/casasgrandes27%40gmail.com/top I need to crawl the following page with python but I need its HTML not the generic source code of link. For example Open the link: plus....
Daniyal Tariq's user avatar
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
3k views

How to scrape the HTML content of a webpage after rendering is completed in Python [duplicate]

I'm currently on a mission to scrape popular joke websites. One example is a website called jokes.cc.com. If you visit the website, hover your cursor above the 'Get Random Joke' button on the left of ...
gabbar0x's user avatar
  • 4,286
1 vote
1 answer
129 views

Rendering Javascript to obtain static HTML in Python

I have a big amount of HTML files which I want to process using BeautifulSoup and generate some statistics. Although, I came across the problem that the HTML files contain scripts that may generate ...
RafaelCT's user avatar
3 votes
1 answer
4k views

Render JavaScript to HTML in Python?

What My web-app is made dynamic through Google's AngularJS. I want static versions of my pages to be generated. Why Web-scrapers like Google's execute and render the JavaScript; but don't treat the ...
A T's user avatar
  • 13.9k

15 30 50 per page