Questions tagged [web.py]

web.py is a minimalist web framework for Python.

web.py is a web framework for Python that is as simple as it is powerful. web.py is in the public domain; you can use it for whatever purpose with absolutely no restrictions.

web.py was originally published while Aaron Swartz worked at reddit.com, where the site used it as it grew to become one of the top 1000 sites according to Alexa and served millions of daily page views.

Links

Web.py on Github

Web.py on Google Groups

Tutorials

889 questions
-1
votes
1 answer

Python web application: How to keep state

I wrote a WSGI compatible web application using web.py that loads a few dozen MB data into memory during startup. It works quite well with the web.py integrated server. However, using Apache 2 + mod_wsgi, every single request reloads the data,…
Daniel Beck
  • 6,363
  • 3
  • 35
  • 42
-1
votes
1 answer

Trying to create buttons with WebPy, getting a type error

When using The webpy library for python. Im currently trying to make a buttons. Here is my HTML File, Python File and Error. Code.py - Problem Area onOff = form.Form( form.Button('On'), form.Button('Off'), ) class index: def GET(self): …
Xander Newlun
  • 13
  • 1
  • 5
-1
votes
1 answer

Showing error in using $ symbol

I'm using web.py in code.py file when i call submit.render to a html file and it is showing error for using $ symbol in javascript for getting json file. How can i use $ symbol in code.py calling html file.
Rejo Varghese
  • 67
  • 2
  • 9
-1
votes
1 answer

cannot get lighttpd configured to web.py

I am trying to setup my web.py application with lighttpd server on ubuntu 14.04. I have followed the following tutorials and did exactly the same what is…
Sajeetharan
  • 216,225
  • 63
  • 350
  • 396
-1
votes
1 answer

How to access _content from a api response in python

i am using web.py to call an api and authorize whether the token is right or not. it returns a response , i need to access the _content variable inside the object. it returns the object of type "" , how to access…
Sajeetharan
  • 216,225
  • 63
  • 350
  • 396
-1
votes
1 answer

Python Server in AWS

I have written some Web services in Python.I want to deploy it in AWS, I have created the instance. I tried to run using putty and it was coming up well using the command python Flo.py, which starts the server 0.0.0.0:8080. But the problem is when I…
-1
votes
1 answer

How do I set up a web.py apache2 server on an amazon linux ubuntu 13.04 server?

Web.py is free and lightweight. Amazon also provides you with a free web service for a year. How do I set up apache2 onto my server?
Ipotheosis
  • 119
  • 10
-1
votes
3 answers

How to get rid of global name is not defined error?

I'm creating a simple web.py service like this urls = ( '/test', 'index' ) class index: def GET(self): user_data = web.input() return performstuff(user_data.color, user_data.shade) def performstuff(color, shade): …
Anthony
  • 33,838
  • 42
  • 169
  • 278
-1
votes
1 answer

Pointer-like behaviour in Python

I have two modules. One is the core of the website based on web.py (let's name it code.py), and other is an add-on module (addon.py). Using web.py, for each page that the website server there should be class definition in a core, like that: class…
-1
votes
1 answer

Web.py Period after variable in template

I have a template where I'm passing string1 and string2 to it. I then want to display the passed variables like string1string2.zip but the problem is it gets read as if I want to get the zip attribute from string2 instead of displaying it as…
-1
votes
1 answer

How to upload file with Web.py+phonegap

I'm using web.py as a RESTful server for my project,and now I'm faced a problem is how to upload file. In the Phonegap offical document,i found the example ,but it was written by PHP,on the server side it use a function named move_uploaded_file().I…
Johnny.J
  • 1
  • 1
-2
votes
2 answers

Yet another web.py name collision

I'm trying to make a simple Hello World web page in Python 3.7.4 and web.py 0.40-dev1 (which is supposed to be compatible) and I'm running into AttributeError: module 'web' has no attribute 'applications' error. I've googled enough to know that is…
ADSMarko
  • 363
  • 1
  • 3
  • 8
-2
votes
1 answer

Web.py installation error

# Python Version λ python Python 3.7.0b5 (v3.7.0b5:abb8802389, May 31 2018, 01:54:01) [MSC v.1913 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> λ pip3 install web.py Collecting web.py …
-2
votes
1 answer

Webpy: Variables not showing properly in html

I'm getting an error while using webpy, my string is "No client", but when opening html in browser i get only 'No', the white space and rest of string is lost! What I'm doing wrong? This is what is in the .html part:
-2
votes
1 answer

web.py REST server: should the GET method return a dict() or string (json.dumps(mydict))?

class MyRestHandler: def GET(self): my_dictionary = return my_dictionary OR return json.dumps(my_dictionary, indent=2, seperators(',',': ')) I intend for this Rest GET to be invoked by…
user3213604
  • 407
  • 1
  • 7
  • 18
1 2 3
59
60