Skip to main content
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 ...
JCCyC's user avatar
  • 16.8k
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 ...
Luca Sagoleo's user avatar
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 ...
Jerrin's user avatar
  • 13
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. ...
Help's user avatar
  • 1
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: (...
busterroni's user avatar
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 ...
carbontracking's user avatar
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&param2=somethingelse I see how I can retrieve the values of ...
carbontracking's user avatar
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\...
Engr. Sule Muhammed Abba's user avatar
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 ...
wheeeee's user avatar
  • 1,555
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 ...
wheeeee's user avatar
  • 1,555
-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 ...
AlpaBeta's user avatar
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', '/...
Deep's user avatar
  • 31
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....
Oghli's user avatar
  • 2,361
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....
Edgar's user avatar
  • 11
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 - - [...
big Bro's user avatar

15 30 50 per page
1
2 3 4 5
60