All Questions
735 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
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
203
views
Running 2 web.py servers from the same script Python
New to Python.
I am trying to run 2 web.py servers with different ports on the from the same script.
Basically i want to start the 2 scripts at the same time and be able to access both ports ...
0
votes
1
answer
140
views
Not able to access stylesheet and javascript files from Web Py controller
I'm very new to Python coding. I started building a simple site using Web.py. While I'm able to create all the simple routes like Home, Profile, etc properly, I'm facing an issue in setting up routes ...
0
votes
1
answer
105
views
How to make my navbar float and also separate the list with Bootstrap 4
I am trying to make my navbar float to the right and also separate the list in the navbar. I am finding it difficult after several attempts. Attached is my sample code I have been working on.
i want ...