cherrypy

How do I configure the ip address with CherryPy?

I'm using python and CherryPy to create a simple internal website that about 2 people use. I use the built in webserver with CherryPy.quickstart and never messed with the config files. I recently changed machines so I installed the latest Python and cherrypy and when I run the site I can access it from localhost:8080 but not through the ...

CherryPy server name tag

When running a CherryPy app it will send server name tag something like CherryPy/version. Is it possible to rename/overwrite that from the app without modifying CherryPy so it will show something else? Maybe something like MyAppName/version (CherryPy/version) ...

How does cherrypy handle user threads?

I'm working on a django app right and I'm using cherrypy as the server. Cherrypy creates a new thread for every page view. I'd like to be able to access all of these threads (threads responsible for talking to django) from within any of them. More specifically I'd like to be able to access the thread_data for each of these threads from w...

Apache sockets not closing?

I have a web application written using CherryPy, which is run locally on 127.0.0.1:4321. We use mod-rewrite and mod-proxy to have Apache act as a reverse proxy; Apache also handles our SSL encryption and may eventually be used to transfer all of our static content. This all works just fine for small workloads. However, I recently used...

Initializing cherrypy.session early

I love CherryPy's API for sessions, except for one detail. Instead of saying cherrypy.session["spam"] I'd like to be able to just say session["spam"]. Unfortunately, I can't simply have a global from cherrypy import session in one of my modules, because the cherrypy.session object isn't created until the first time a page request is ma...

Any good cherrypy tutorials or videos?

I am looking for a good in-depth tutorial to get me going on CherryPy and haven't been able to find one on Google. The CherryPy website has a tutorial, but it is rather simple and doesn't discuss more than the basic aspects of CherryPy. I am not interested in the book at this time, as I need to get some progress in the next few days an...

How to make parts of a website under SSL and the rest not?

I need to create a cherrypy main page that has a login area. I want the login area to be secure, but the rest of the page should not be so. How can I do this in CherryPy? Ideally, any suggestions will be compatible with http://tools.cherrypy.org/wiki/AuthenticationAndAccessRestrictions Thanks. ...

Python Webframework Confusion

Could someone please explain to me how the current python webframworks fit together? The three I've heard of are CherryPy, TurboGears and Pylons. However I'm confused because TurboGears seems to use CherryPy as the 'Controller' (although isn't CherryPy a framework in in it's own right?), and TurbGears 2 is going to be built on top of Py...

What would you recommend for a high traffic ajax intensive website?

For a website like reddit with lots of up/down votes and lots of comments per topic what should I go with? Lighttpd/Php or Lighttpd/CherryPy/Genshi/SQLAlchemy? and for database what would scale better / be fastest MySQL ( 4.1 or 5 ? ) or PostgreSQL? ...

Does SQLAlchemy support caching?

Does SQLAlchemy support some kind of caching so if i have lots of time the same query it would return the response from cache instead of querying the database until i clear the cache for that query because i updated de db? Or what's the best way to implement this on a CherryPy,SQLAlchemy setup? ...

Why do I receive an ImportError when running one of the CherryPy tutorials

I have installed CherryPy 3.1.0,. Here is what happens when I try to run tutorial 9: $ cd /Library/Python/2.5/site-packages/cherrypy/tutorial/ $ python tut09_files.py Traceback (most recent call last): File "tut09_files.py", line 48, in <module> from cherrypy.lib import static ImportError: cannot import name stat...

cherrypy not closing the sockets

Hi Guys, I am using cherrypy as a webserver. It gives good performance for my application but there is a very big problem with it. cherrypy crashes after couple of hours stating that it could not create a socket as there are too many files open: [21/Oct/2008:12:44:25] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0',...

Any good "contact us" recipes for Cherrypy?

I'm looking to implement a "Contact Us" form with Cherrypy and was wondering: Is there a good recipe (or a BSD licensed set of code) that I could use instead of reinventing the wheel? Ideally, this would be Cherrpy 3.1 compatible. ...

Escaping spaces in mod_rewrite

I have the following Apache mod_rewrite rule: RewriteRule ^(.*) http://127.0.0.1:4321/$1 [proxy] This works great; Apache forwards all requests to the CherryPy server I have running on the same machine. Unfortunately, I'm having some problems with paths which have a space. If I make a request for /Sites/some%20site/image.png then Ap...

CherryPy for a webhosting control panel application

For quite a long time I've wanted to start a pet project that will aim in time to become a web hosting control panel, but mainly focused on Python hosting -- meaning I would like to make a way for users to generate/start Django/ other frameworks projects right from the panel. I seemed to have found the perfect tool to build my app with i...

how to browse to a external url from turbogears/cherrypy application?

I am writing a tinyurl clone to learn turbogears. I am wondering how do i redirect my browser to the external website (say www.yahoo.com) from my cherrypy/turbogears app? I googled about it, but could not find much useful info. ...

How to integrate the StringTemplate engine into the CherryPy web server

I love the StringTemplate engine, and I love the CherryPy web server, and I know that they can be integrated. Who has done it? How? EDIT: The TurboGears framework takes the CherryPy web server and bundles other related components such as a template engine, data access tools, JavaScript kit, etc. I am interested in MochiKit, demand C...

How to run the CherryPy web server in the Google App Engine

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 recommend it to others? ...

can cherrypy receive multipart/mixed POSTs out of the box?

We're receiving some POST data of xml + arbitrary binary files (like images and audio) from a device that only gives us multipart/mixed encoding. I've setup a cherrypy upload/POST handler for our receiver end. I've managed to allow it to do arbitrary number of parameters using multipart/form-data. However when we try to send the multi...

One view ( frontpage ) for many controllers (sub views)

Notes: Cannot use Javascript or iframes. In fact I can't trust the client browser to do just about anything but the ultra basics. I'm rebuilding a legacy PHP4 app as a MVC application, with most of my research currently focused with the Pylon's framework. One of the first weird issues I've run into and one I've solved in the past by us...