886 questions
0
votes
0
answers
29
views
Is a database object created by web.database() thread safe?
DISCLAIMER: Tried to Google, came up with nothing, I admin I may have googled poorly but I'm out of ideas.
I have a web.py application, I need to run some database maintenance tasks periodically, and ...
1
vote
0
answers
120
views
Lighttpd + webpy + venv: how to configure
I'm trying to run webpy as fastCgi inside lighttpd in my Debian system. Webpy asked for Flup and cheroot in order to work, so I created a virtual environment and I managed to have it running inside ...
0
votes
1
answer
74
views
web.py seeother() not functioning as expected
I'm new to web.py. Trying to setup redirection as explained in the documentation. However, when I send a curl request for localhost:8080/health/ the application returns None instead of the HAPPY
...
0
votes
3
answers
80
views
Data scraping with python beautifulsoup
Hey I created a script to datascrape a specific website, the code is ok but i get a error when i try to excecute the code.
Tried cmd to excecute the file so i can get results but still a error.
...
0
votes
1
answer
369
views
web.py and lighttpd error: Connection refused, child exited: 1
I'm running web.py with lighttpd with very similar config to what's suggested on the website. When I run it with /etc/init.d/lighttpd start I get these errors in the logs:
2022-11-07 21:30:59: (...
0
votes
3
answers
365
views
Trying to return a static file in web.py but getting "not found" error message
I have a web.py server hosted on pythonanywhere.com doing some handy things with python.
Now I'd like to just serve a straightforward html file from the same server i.e. just return the contents of a ...
0
votes
1
answer
39
views
When using web.py how can I checkis a parameter exists in the URL?
I'm using web.py https://webpy.org/ for providng access to simple python script like
http://hosturl.com.scriptname?param1=something¶m2=somethingelse
I see how I can retrieve the values of ...
0
votes
2
answers
626
views
How do I target an error as result of timeout in python
I am writing a function to restart my code whenever there is a connection problem.
whenever I disconnect my WiFi, the following is generated.
File "C:\Users\m2jto\AppData\Local\Programs\Python\...
0
votes
3
answers
2k
views
GET() missing 1 required positional argument : how do i format a GET request to include parameters?
I have a webapp with the following code, which is supposed to serve up any .html file I have stored in the htmls/ directory, provided the two parameters urlhash and predictiontag are correct.
import ...
0
votes
1
answer
299
views
How to return static HTML pages within a directory using web.py?
I have a web app built with web.py that generates some HTML files and serves them up to the front end. Just by going through the web.py tutorial, it seems I need to explicitly create a class for each ...
-1
votes
1
answer
421
views
Get URL with access token
I know this is a question with a really simple answer, but I've been looking for the answer for two hours and I can't find it. I am trying to convert a web.py google and facebook auth login module to ...
1
vote
1
answer
113
views
Base layout does not load when accepting dynamic url
I am using web.py for a web project. I have the following url structure
urls = (
'/', 'Home',
'/register','Register',
'/postregistration', 'PostRegistration',
'/login', 'Login',
'/...
0
votes
1
answer
87
views
Purpose of t before $ in HTML Python template
What is the purpose of inserting t before $ symbol when making HTML templates in python web.py framework:
$def with (todos)
<ul>
$for todo in todos:
<li id="t$todo.id">$todo....
1
vote
1
answer
107
views
Python-Arduino Web
So I am going off of the book called 'Python Programming for Arduino', and I am currently having trouble working the web ex 2 in the book. I know that github has the code at this link: https://github....
0
votes
2
answers
68
views
Problems with boostrap (begginer)
I am trying to create web page using web.py and I've added bootstrap and ripples. But when I run it, I get the following errors:
- - [17/Aug/2020 08:56:01] "HTTP/1.1 GET /" - 200 OK
- - [...