cherrypy Questions
1
Solved
I noticed that cherrypy session does not require a secret key configuration. On the contrary, Pylons session does: http://docs.pylonsproject.org/projects/pylons_framework/dev/sessions.html
I'm con...
Birdwatcher asked 16/7, 2011 at 17:28
1
Solved
I am having an issue with what should be a basic concept in cherrypy but as yet I have been unable to find a tutorial or example on how to do this (I am a Cherrypy newbie, be gentle).
The Problem....
Maggiemaggio asked 30/6, 2011 at 8:21
1
Solved
I have one doubt. I need to write site on embedded system ( memory 64MB, HD 256MB ), I already have Python there and SQLite. I thought to use Django for this, but I heard that Django uses memory a ...
1
Solved
I'm new to CherryPy, coming from Django. I liked the way Django split the various parts of the project into many files, and I'd like to do the same in CherryPy, instead of having one big file.
I t...
Reins asked 20/5, 2011 at 7:14
1
Solved
How can I add retry-header in cherrypy?
import cherrypy
import os
class Root:
def index(self):
cherrypy.response.headers['Retry-After'] = 60
cherrypy.request.headers["Age"]= 20
cherrypy.c...
1
Solved
I am trying to do a simple proof of concept on a new EC2 instance in which I run the "Hello World" tutorial code from the CherryPy distribution.
CherryPy launches successfully, and a wget run dir...
Nonconformist asked 9/4, 2011 at 22:42
1
Solved
I've been deciding between Python web frameworks for a project of mine and I've really liked how lightweight, flexible, and concise CherryPy is compared to others. The only problem I'm having is I ...
Stadler asked 7/4, 2011 at 23:46
4
Solved
I have code which generates a Cairo ImageSurface, and I expose it like so:
def preview(...):
surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, width, height)
...
cherrypy.response.headers['Cont...
2
running cherrypy with mod_wsgi on apache along with another php app. The cherrypy app is NOT mounted on root, but rather on something like 'localhost/apps/myapp' via WSGIScriptAlias in the apache c...
1
Solved
I'm having trouble with logging. I'm running CherryPy 3.2 and I've been reading through the docs here, but haven't found any examples of how to configure a local log file for output and how to writ...
2
Solved
I'm setting up a CherryPy application and would like to have the majority of my configuration settings in a .conf file like this:
[global]
server.socketPort = 8080
server.threadPool = 10
server.en...
Hierolatry asked 21/10, 2010 at 16:34
1
Solved
I am using Cherrypy in a RESTful web service and server returns XML as a result (lxml is being used to create XML). Some of those XMLs are quite large. I have noticed that memory is not being relea...
Saharanpur asked 17/9, 2010 at 16:42
2
Solved
In my controller/request-handler, I have the following code:
def monkey(self, **kwargs):
cherrypy.response.headers['Content-Type'] = "application/json"
message = {"message" : "Hello World!" }
...
3
The CherryPy web server can supposedly be deployed in the Google App Engine.
Who has done it, and what was the experience like?
What special effort was required (configuration, etc.)?
Would you ...
Droopy asked 18/12, 2008 at 21:28
1
Solved
I've been working on a python web app using cherrypy and read it'd be more "robust" to use it as a backend, so I gave it a try.
Shortly put, running some benchmarks on a page doing some database o...
2
Solved
I have a cherrypy application and on some of the views I want to start only allowing certain users to view them, and sending anyone else to an authorization required page.
Is there a way I can do ...
Ctenophore asked 21/7, 2010 at 19:8
1
I do know that cherrypy is a multithreaded and also has a threadpool implementation.
So I wanted to try an example showing multithreaded behaviour.
Now lets say I've my some function in the root cl...
Stomodaeum asked 2/7, 2010 at 9:31
5
Solved
I have one server located at example.com running apache, serving my static html files.
I also have a json service located at api.example.com running python with cherrypy.
The user requests exampl...
Exocrine asked 28/6, 2010 at 14:18
1
I have put my application using Cherrypy 3.1.2 behind Nginx configured as a reverse-proxy.
All is working right for GET requests, but all POST requests return HTTP 400 - Malformed header.
I traced...
Aurelio asked 16/2, 2010 at 12:48
3
Solved
I love webpy, it's really quite Pythonic but I don't like having to add the url mappings and create a class, typically with just 1 function inside it.
I'm interested in minimising code typing...
Marhtamari asked 3/6, 2010 at 8:20
6
Solved
I'm in the process of building a web application using cherrypy.
What template technology do you recommend I use?
Christinchristina asked 14/6, 2009 at 15:33
2
Solved
I'm writing a cherrypy app and I was wondering what the best way is for structuring my handlers and code for larger applications?
I realize assignment is simple trough cherrypy.root, but what are ...
Thereabout asked 18/4, 2010 at 17:38
2
I have a cherrypy app that I've made an exe with pyinstaller.
now when I run the exe it loads itself twice into memory. Watching the taskmanager shows the first instance load into about 1k, then a...
Ivelisseivens asked 23/1, 2010 at 20:34
2
I have a cherrypy app that I'm controlling over http with a wxpython ui. I want to kill the server when the ui closes, but I don't know how to do that. Right now I'm just doing a sys.exit() on the ...
2
Solved
I'm wondering because CherryPy is, from my knowledge, built purely in Python, which is obviously slower than C et al. Does this mean that it's only good for dev / testing environments, or could I u...
© 2022 - 2024 — McMap. All rights reserved.