All Questions
17 questions
-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]
{% ...
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, ...
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 ...
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.
...
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 ...
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 ...
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 ...
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:...
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 ...
-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 ...
-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....
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="{...
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 ...
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 ...
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 ...