Re: wsgi servers...

2011-12-27 Thread Graham Dumpleton
Anything that claims any sort of support for WGSI 2 should be avoided as there is no such thing as WSGI 2, nor are there any blessed async extensions for WSGI. Graham On Dec 28, 6:16 am, dm73 miedema.do...@gmail.com wrote: May be

Re: wsgi servers...

2011-12-25 Thread Graham Dumpleton
The CherryPy WSGI server is only one I would trust for both Python 2 and 3 at this point, but it is I believe still not installable as a separate package via PyPi, but only as part of CherryPy package as a whole. It can be extracted out of CherryPy and a copy used, but that sort of defeats the

Re: Issue with mod_wsgi and repoze.what

2010-12-19 Thread Graham Dumpleton
What sort of auth? If you mean HTTP Basic authentication, read: http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms#HTTP_User_Authentication Graham On Monday, December 20, 2010 5:22:24 PM UTC+11, lollerskates wrote: I'm having a bizarre issue with mod_wsgi and repoze.what. My

Re: [modwsgi] apache2 lenny pylons mod_wsgi python 2.6 = error : Premature end of script headers: demo.wsgi, referer: http://example.com/

2010-12-08 Thread Graham Dumpleton
On 8 December 2010 20:37, Stéphane Klein steph...@harobed.org wrote: Hi, I use Pylons 1.0 Framework and mod_wsgi on production server. I can use my application but randomly 1 request on 10 I've error : Internal Server Error in browser and in error log file : [client 82.231.115.1]

Re: apache2 lenny pylons mod_wsgi python 2.6 = error : Premature end of script headers: demo.wsgi, referer: http://example.com/

2010-12-08 Thread Graham Dumpleton
...@harobed.org wrote: Le 08/12/2010 11:21, Stéphane Klein a écrit : Le 08/12/2010 10:54, Graham Dumpleton a écrit : On 8 December 2010 20:37, Stéphane Kleinsteph...@harobed.org wrote: Hi, I use Pylons 1.0 Framework and mod_wsgi on production server. I can use my application but randomly 1 request

Re: apache2 lenny pylons mod_wsgi python 2.6 = error : Premature end of script headers: demo.wsgi, referer: http://example.com/

2010-12-08 Thread Graham Dumpleton
, Stéphane Klein steph...@harobed.org wrote: Le 08/12/2010 11:52, Graham Dumpleton a écrit : Logs show the segmentation faults I speak of: [Wed Dec 08 11:32:47 2010] [error] [client 82.231.115.1] Premature end of script headers: demo.wsgi, referer: http://example.com/employees/ [Wed Dec 08 11:32:47

Re: apache2 lenny pylons mod_wsgi python 2.6 = error : Premature end of script headers: demo.wsgi, referer: http://example.com/

2010-12-08 Thread Graham Dumpleton
On 9 December 2010 00:34, Stéphane Klein steph...@harobed.org wrote: Le 08/12/2010 12:20, Graham Dumpleton a écrit : No clues unfortunately, just looks like arbitrary memory corruption. Do make sure you aren't loading mod_python into same Apache. No, mod_python isn't installed. Other

Re: Pylons repoze.bfg Merger - or - Where'd Pylons 2.0 go?

2010-11-07 Thread Graham Dumpleton
He would have meant . See: http://www.python.org/dev/peps/pep-/ On Nov 8, 9:07 am, Mike Orr sluggos...@gmail.com wrote: On Sun, Nov 7, 2010 at 1:27 PM, Ben Bangert b...@groovie.org wrote: On Nov 7, 2010, at 12:53 PM, Mike Orr wrote: So when that is approved, and has an

Re: To pickle a controller function

2010-08-28 Thread Graham Dumpleton
On Aug 28, 5:13 am, Mike Orr sluggos...@gmail.com wrote: On Fri, Aug 27, 2010 at 12:51 AM, waugust waugustyn...@gmail.com wrote: Greetings, Hoping someone will be able to shed some light here. I'm building an application that requires to have something akin to stored procedure calls on

Re: uwsgi

2010-08-10 Thread Graham Dumpleton
On Aug 11, 3:16 am, Mike Orr sluggos...@gmail.com wrote: On Tue, Aug 10, 2010 at 2:42 AM, Weixi Yen weixi...@gmail.com wrote: My stack is nginx uwsgi pylons. I haven't heard of uWSGI before so I assume a lot of Pylons users haven't either. From the website

Re: uwsgi

2010-08-10 Thread Graham Dumpleton
On Aug 11, 3:48 am, weixi...@gmail.com weixi...@gmail.com wrote: I picked uwsgi b/c it seemed like potentially less overhead coupled with nginx, rather than nginx apache mod_wsgi.   My reasoning was that the newer stable versions of nginx comes with uwsgi integration by default, you just

Re: uwsgi

2010-08-10 Thread Graham Dumpleton
On Aug 11, 5:23 am, Mike Orr sluggos...@gmail.com wrote: On Tue, Aug 10, 2010 at 10:48 AM, weixi...@gmail.com weixi...@gmail.com wrote: I picked uwsgi b/c it seemed like potentially less overhead coupled with nginx, rather than nginx apache mod_wsgi.   My reasoning was that the newer

Re: uwsgi

2010-08-10 Thread Graham Dumpleton
On Aug 11, 11:01 am, Weixi Yen weixi...@gmail.com wrote: Thanks, turns out the SCRIPT_NAME /; is handled incorrectly. Running liveheaders, it appears that when redirect_to is used, then the request gets served ashttp://controller/actionwithout the domain. I think it's appending / to

Re: uwsgi

2010-08-10 Thread Graham Dumpleton
On Aug 11, 1:02 pm, Noah Gift noah.g...@gmail.com wrote: On Tue, Aug 10, 2010 at 4:49 PM, Graham Dumpleton graham.dumple...@gmail.com wrote: On Aug 11, 5:23 am, Mike Orr sluggos...@gmail.com wrote: On Tue, Aug 10, 2010 at 10:48 AM, weixi...@gmail.com weixi...@gmail.com wrote: I

Re: uwsgi

2010-08-10 Thread Graham Dumpleton
On Aug 11, 1:45 pm, Mike Orr sluggos...@gmail.com wrote: So, how again do you test a uwsgi-daemon I believe uWSGI supplies a Python module which can talk its native daemon protocol. They use this to allow systems like Twisted to talk to it I think. See:

Re: mod_wsgi and DistributionNotFound exceptions

2010-06-29 Thread Graham Dumpleton
/www/pylons/eggcache' from paste.deploy import loadapp application = loadapp('config:/var/www/pylons/cp/development.ini') And make sure that /var/www/pylons/eggcache is writeable by your webserver. There are probably some issues with the particular script and perhaps Graham Dumpleton

Re: embedding pylons in apache problem

2010-05-13 Thread Graham Dumpleton
On May 14, 10:16 am, James McManus jmpmcma...@gmail.com wrote: I'm trying to embed pylons in my apache server, following the instructions in the Pylons Book. When I start my server I do not get an error.  The following egg is created in egg-cache:

Re: application deployment question about nginx and pylons

2010-05-06 Thread Graham Dumpleton
On May 7, 2:06 am, Jonathan Vanasco jonat...@findmeon.com wrote: I'm of this school of thought: if you're doing anything with moderate to high traffic, you should be running NGINX on port 80 , with a proxypass to something else. What you proxypass to, however, is up to you. 1- paster 2-

Re: undefined error with mod_python

2010-04-26 Thread Graham Dumpleton
On Apr 26, 7:01 pm, Tim-Erwin p...@tim-erwin.de wrote: Thanks cd34 for your ideas. I use mod_python for other stuff on my server, but that doesn't prevent me from also using mod_wsgi. Especially, as it is already very well supported across python applications and is said to perform better

Re: Pylons hosting on a VPS (memory usage)

2010-04-21 Thread Graham Dumpleton
On Apr 21, 7:57 pm, cropr ruben.dec...@gmail.com wrote: I am running 3 pylons apps on a single VPS with 256 MB ram (no swap space).  I am using apache in multi threaded mode and mod_wsgi. Every 2 to 3 months I restart the apache server, because the apache child processes gradually grow in

Re: How do you signal the end of streaming content?

2010-04-20 Thread Graham Dumpleton
On Apr 21, 9:31 am, jazg tazg2...@gmail.com wrote: In particular, I want to trigger a long process by going to a page, without having to wait for the process to finish. I thought I could do this: def page(self):     def stream():         yield content         long_process()     return

Re: pylons cookbook startup script/activate_workingenv

2010-03-27 Thread Graham Dumpleton
for situations like mod_wsgi, but I think the mod_wsgi author has said not to use it. I may be wrong about that. I've cc'd Graham Dumpleton for clarification. I discourage use of activate_this as it changes sys.prefix during execution of process. This may be totally resasonable if your application is only

Re: [pypefitters discussion] Re: WSGI at PyCon

2010-02-20 Thread Graham Dumpleton
On 20 February 2010 15:53, Mike Orr sluggos...@gmail.com wrote:  - ``mod_wsgi`` has, and ``CherryPy`` will have, options to handle the headers in multiple ways (bytestrings vs Unicode), so that they'll work with whatever the final spec is (or whatever the user wants). No, mod_wsgi 3.X does not

Re: HEAD requests

2010-02-03 Thread Graham Dumpleton
You may find my blog post about GET/HEAD and WSGI interesting. http://blog.dscpl.com.au/2009/10/wsgi-issues-with-http-head-requests.html Because of Python web frameworks doing all sort of odd things and not always handling HEAD properly, I in part felt that WSGI adapters should always just

Re: prefixmiddleware behind proxy generates correct h.url's, but redirect's dont keep 'https'

2010-02-01 Thread Graham Dumpleton
On Feb 2, 12:30 am, Damian damiandimm...@gmail.com wrote: Hi, Just in case anyone else runs into this, the proxy must forward the variable X_FORWARDED_PROTO, and not, as a few other posts i found suggest: X_FORWARDED_PROTOCOL.  So for nginx use in your location section where you are

Re: Fastcgi and performance

2010-01-30 Thread Graham Dumpleton
automatically and I believe that is because the application was not designed to work this way. How can I fix this? Thank you all PF On Jan 28, 11:28 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Jan 29, 2:02 pm, PF4Pylons ultimulunic...@gmail.com wrote: The provider

Re: Fastcgi and performance

2010-01-28 Thread Graham Dumpleton
it on your own computer system somehow because any mistake in the code will yield a 500 error and you may not know whether it is a coding error in your program or lack of flup, of whether it just isn't honouring the #! line. Graham On Jan 26, 10:48 pm, Graham Dumpleton graham.dumple

Re: Fastcgi and performance

2010-01-26 Thread Graham Dumpleton
On Jan 27, 1:56 pm, PF4Pylons ultimulunic...@gmail.com wrote: Hi guys Thanks for your replies. Godaddy doesn't support mod_wsgi and they support FastCGI only for Perl and Ruby. There is nothing special that has to be done to FASTCGI setup to support a particular language. If they already

Re: Can't get pylons to log in mod_python mode..

2009-12-08 Thread Graham Dumpleton
Paste server does special stuff to initialise the environment for logging. Arguably it shouldn't do this and any such initialisation should be a side effect of getting the root WSGI application object. What it means is that you have to perform the same initialisation somehow when using

Re: slow import

2009-12-06 Thread Graham Dumpleton
On Dec 7, 3:07 am, andres and...@octopart.com wrote: Hi, I've been looking into performance bottlenecks in my pylons app and I noticed that importing the pylons module itself takes 150 msec. It might seem pedantic to be worried about 150 msec, but it seems like an unnecessary startup cost.

Re: DistributionNotFound problem

2009-08-28 Thread Graham Dumpleton
On Aug 28, 1:33 pm, anuraguni...@yahoo.com anuraguni...@yahoo.com wrote: Thanks for the answers, i have found the problem Problem was with mod_wsgi, somehow it is using old python installation (python 2.4) and i have installed packages on python2.5, which is in system path too.

Re: Pylons marketing, ( new thread from web tech )

2009-08-22 Thread Graham Dumpleton
On Aug 22, 2:48 pm, Didip Kerabat did...@gmail.com wrote:  From my experience both are not ridiculously hard to deploy. Even   though pylons have more options. It's  a hard sell on that one, i   think. On the other hand, isn't django having problem with wsgi? Care to elaborate on what

Re: Pylons marketing, ( new thread from web tech )

2009-08-22 Thread Graham Dumpleton
On Aug 23, 9:56 am, Philip Jenvey pjen...@underboss.org wrote: On Aug 22, 2009, at 3:36 PM, Graham Dumpleton wrote: FWIW, hosting Pylons on anything besides Paste HTTP server can also be a problem in some cases. This is because certain setup steps for logging expected by Pylons

Re: Pylons marketing, ( new thread from web tech )

2009-08-22 Thread Graham Dumpleton
On Aug 23, 9:34 am, Mike Orr sluggos...@gmail.com wrote: On Sat, Aug 22, 2009 at 3:36 PM, Graham Dumpletongraham.dumple...@gmail.com wrote: On Aug 22, 2:48 pm, Didip Kerabat did...@gmail.com wrote:  From my experience both are not ridiculously hard to deploy. Even though pylons have

Re: Pylons' redirect_to function does not work with HTTPS

2009-08-02 Thread Graham Dumpleton
On Aug 3, 12:13 pm, hekevintran hekevint...@gmail.com wrote: I have deployed a Pylons application on WebFaction and I am trying to use redirect_to in my controller.  My page is using HTTPS.  For some reason redirect_to is generating urls that are using HTTP for the protocol.  I am currently

Re: Pylons' redirect_to function does not work with HTTPS

2009-08-02 Thread Graham Dumpleton
Pylons to say how you would integrate WSGI middleware wrapper to fix it up. Do a search on WebFaction's own forums as this issue has been discussed there before. Graham On Aug 2, 7:43 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Aug 3, 12:13 pm, hekevintran hekevint

Re: Pylons' redirect_to function does not work with HTTPS

2009-08-02 Thread Graham Dumpleton
On Aug 3, 3:28 pm, Mike Orr sluggos...@gmail.com wrote: On Sun, Aug 2, 2009 at 9:03 PM, hekevintranhekevint...@gmail.com wrote: I found a good solution.  It will know which protocol to use if you specify it in the function call to redirect_to: return redirect_to(protocol='https',

Re: Launching a background process

2009-07-27 Thread Graham Dumpleton
On Jul 27, 2:07 pm, Dave Forgac tylerd...@gmail.com wrote: I am trying to write an application that will allow a user to launch a fairly long-running process (5-30 seconds). It should then allow the user to check the output of the process as it is generated.  The output will only be needed

Re: Multiple applications with mod_wsgi

2009-07-21 Thread Graham Dumpleton
On Jul 21, 6:55 pm, Frank b...@metrico.lu wrote: Hello list, I am taking my first steps with pylons and really enjoy developing with it. Much better than my previous PHP experiences :-). But now on to my question: I plan to run several pylons applications on my server. One would be my

Re: mod_wsgi and auth_kit: Login doesn't work

2009-07-20 Thread Graham Dumpleton
On Jul 21, 3:10 am, Damjan gdam...@gmail.com wrote: [Fri Jul 17 19:01:43 2009] [error] [client 192.168.1.100] TypeError: sequence of string values expected, value of type literal found, referer:http://192.168.1.100/ This seems like the common error in middleware to not return strings

Re: Cannot import tmpl_context

2009-07-07 Thread Graham Dumpleton
On Jul 7, 12:43 pm, Mike Orr sluggos...@gmail.com wrote: On Sun, Jul 5, 2009 at 10:51 PM, apocalypznowapocalypz...@gmail.com wrote: I am running python 2.5.2 on a debian based box (mint 5) and I used the package manager to download pylons 0.9.6.1-1. In python shell, when I type: from

Re: Set FormEncode translation while hosting as mod_wsgi

2009-05-27 Thread Graham Dumpleton
On May 28, 2:29 pm, Jan Koprowski jan.koprow...@gmail.com wrote: Hi !   When my app is run under Paster i18n works fine. After i switch to production environ (based on Apache with mod_wsgi) my Pylons messages translated inside my app works fine but for example (my lang directive in *.ini

Re: deploying to production?

2009-05-25 Thread Graham Dumpleton
On May 26, 1:57 am, Chris Withers ch...@simplistix.co.uk wrote: Chris Miles wrote: paster serve is a reasonable option.  Like I said, mod_wsgi is   preferred for me as it simplifies service control. Yes, there's a lot to be said for that... Most systems already know how to start and

Re: How setup (I guess) Pylons routes when app run under WSGIAlias /something

2009-05-18 Thread Graham Dumpleton
On May 19, 4:07 am, Marius Gedminas mar...@gedmin.as wrote: On Mon, May 18, 2009 at 06:39:41AM -0700, Jan Koprowski wrote: I use mod_wsgi 2.5 under Apache 2. My WSGI applications is in /home/username/public_wsgi/wsgi/myapp.wsgi where public_wsgi is directory where i have production.ini

Re: AuthKit for Static Files

2009-04-07 Thread Graham Dumpleton
On Apr 7, 10:11 am, Jason Reid reid.ja...@gmail.com wrote: Nevermind; I should have just did a little more googling. If anyone is interested in this; it seems quite easy usingmod_wsgi for Apache. I dont care about the other ones really so no big

Re: What I've learned deploying pylons

2009-03-30 Thread Graham Dumpleton
On Mar 30, 10:56 pm, Arun Tomar tomar.a...@gmail.com wrote: hi! well quite a discussion. just to add share my experience of developing on pylons deploying it. My requirement was to host multiple pylons application, on a single server. so running each app on paster daemon proxy to it

Re: What I've learned deploying pylons

2009-03-29 Thread Graham Dumpleton
On Mar 29, 7:52 pm, Max Ischenko ische...@gmail.com wrote: Hi jj, On Sun, Mar 29, 2009 at 00:42, jose jj.gal...@gmail.com wrote: I can certainly sympathize here. ;) I have tried various deployment solutions as well for my work on developers.org.ua project. I used to use supervisord plus

Re: What I've learned deploying pylons

2009-03-29 Thread Graham Dumpleton
On Mar 30, 7:17 am, Jose Galvez jj.gal...@gmail.com wrote: Wow this discussion has been really great, I've learned quite a bit just following the different threads.  Like I said I think there is room in the wiki for us to post better real world howto's with end to end config files.  For

Re: What I've learned deploying pylons

2009-03-28 Thread Graham Dumpleton
On Mar 29, 11:05 am, Mike Orr sluggos...@gmail.com wrote: On Sat, Mar 28, 2009 at 4:42 PM, jose jj.gal...@gmail.com wrote: So this brings me to the heart of what I've learned, if you are going to deploy a long running app how do you do it? I put all my Pylons and Quixote apps under

Re: modwsgi + Pylons gives segmentation fault

2009-02-24 Thread Graham Dumpleton
On Feb 24, 9:37 pm, cropr ruben.dec...@gmail.com wrote: I am trying to setup mod_wsgi + Pylons on my deployment server (a CentOS 5.2 machine), but I get this error message in the apache log files [Tue Feb 24 11:24:32 2009] [notice] child pid 12226 exit signal Segmentation fault (11) a

Re: clean up after session finished

2009-02-04 Thread Graham Dumpleton
On Feb 5, 1:40 pm, Mike Orr sluggos...@gmail.com wrote: On Wed, Feb 4, 2009 at 6:02 PM, Matt Feifarek matt.feifa...@gmail.com wrote: On Wed, Feb 4, 2009 at 3:10 PM, Mike Orr sluggos...@gmail.com wrote: You don't know when the user closes the browser.  In fact, you don't know anything

Re: Exploring ramework futures

2009-01-19 Thread Graham Dumpleton
On Jan 20, 10:31 am, Mike Orr sluggos...@gmail.com wrote: - it may be time to move to a post-WSGI standard a la the WSGI 2 proposals, since we'll have to change WSGI anyway.  However, politically getting a WSGI update into the Python core is a long slow process, so maybe we should just do

Re: Recommended production deployment

2009-01-14 Thread Graham Dumpleton
is an additional overhead that pylons doesn't do in my configuration. But even so I doubt if Apache could match standalone pylons using CherryPy. On Jan 13, 8:36 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Jan 14, 3:10 pm, Tycon adie...@gmail.com wrote: Actually I have apache

Re: Recommended production deployment

2009-01-14 Thread Graham Dumpleton
On Jan 15, 12:36 am, Tycon adie...@gmail.com wrote: I specifically meant modwsgi's daemon mode is a hack, which is like I explained a proprietary The wire protocol used is actually only a slight variation on the wire protocol used by SCGI. The differences are that there is an initial

Re: Recommended production deployment

2009-01-13 Thread Graham Dumpleton
On Jan 14, 10:42 am, Mike Orr sluggos...@gmail.com wrote: On Tue, Jan 13, 2009 at 6:52 AM, Tycon adie...@gmail.com wrote: Last word on modwsgi and its daemon mode, which is similar to reverse proxy and fcgi in that it separates the web server and app server. As such, it has the same

Re: Recommended production deployment

2009-01-13 Thread Graham Dumpleton
? If we have a single node with mutiple cores and a lot of RAM, and we need to serve a lot of static files, then apache+modwsgi would be better than using a standalone app server. But even for this scenario, nginx as a reverse proxy gives about the same performance. On Jan 13, 5:53 pm, Graham

Re: Recommended production deployment (was: Re: Is Pylons a meta-package ?)

2009-01-13 Thread Graham Dumpleton
On Jan 14, 2:32 pm, Jorge Vargas jorge.var...@gmail.com wrote: On Mon, Jan 12, 2009 at 2:22 PM, Tycon adie...@gmail.com wrote: No, mod_wsgi is a hack. Embedded mode is bad, no serious website is running app server embedded in web server. Daemon mode is even more stupid, an unstable (and

Re: Recommended production deployment (was: Re: Is Pylons a meta-package ?)

2009-01-12 Thread Graham Dumpleton
On Jan 13, 7:44 am, Dalius Dobravolskas dalius.dobravols...@gmail.com wrote: On Mon, Jan 12, 2009 at 10:22 PM, Tycon adie...@gmail.com wrote: No, mod_wsgi is a hack. Embedded mode is bad, no serious website is running app server embedded in web server. Daemon mode is even more stupid,

Re: passing on 404 errors?

2009-01-04 Thread Graham Dumpleton
On Jan 4, 9:06 pm, Max Ischenko ische...@gmail.com wrote: Hello, Merry holidays everyone! I want to disable 404 error handling by wsgi/pylons so that apache handler would run. I'm using mod_wsgi behind apache and now I get Not Found page with hr noshade     div align=rightWSGI

Re: passing on 404 errors?

2009-01-04 Thread Graham Dumpleton
On Jan 4, 9:27 pm, Max Ischenko ische...@gmail.com wrote: Anyway, the specific mod_wsgi issue for this feature is:  http://code.google.com/p/modwsgi/issues/detail?id=57 Although I created an issue for it, no one has actually ever asked for this feature so it has been given quite low

Re: Problem with redirect_to and SSL

2008-12-22 Thread Graham Dumpleton
The real problem here is probably because Pylons server is only accepting HTTP connections and so wsgi.url_scheme in WSGi environment is always 'http' and doesn't reflect that a connection is originally being accepted by Apache as HTTPS. For discussion of similar issue when nginx is used as

Re: repoze.what -- Authorization for WSGI applications

2008-11-27 Thread Graham Dumpleton
On Nov 27, 6:03 am, Gustavo Narea [EMAIL PROTECTED] wrote: Hello, everybody. I'm writing to let you know about the authorization framework I have been working on, repoze.what:http://static.repoze.org/whatdocs/ Some of its features are: * Web framework independent. * Authorization only.

Re: repoze.what -- Authorization for WSGI applications

2008-11-27 Thread Graham Dumpleton
On Nov 28, 12:13 am, Dalius Dobravolskas [EMAIL PROTECTED] wrote: Hello, Gustavo, On the other hand, because REMOTE_USER (which isn't set by r.who) is not always enough and also some of the future features will rely on future/existing repoze.who plugins, for example: I agree with

Re: mod_wsgi and virtualenv

2008-11-10 Thread Graham Dumpleton
On Nov 10, 11:15 pm, Christoph Haas [EMAIL PROTECTED] wrote: Hi, I'm trying to deploy a Pylons app via mod_wsgi (Apache). That works so far. But I want to use a virtualenv directory and can't find any documentation on it. I found something for workingenv but don't know how to translate

Re: Fwd: composite Django/Pylons app gives strange error under mod_wsgi

2008-11-04 Thread Graham Dumpleton
Parallel discussion in mod_wsgi group at: http://groups.google.com/group/modwsgi/browse_frm/thread/4db401c9d5d308a6 Graham Max Ischenko wrote: May be you guys know how Pylons WSGI app can conflict with Django. There is a conflict, since if I comment out call to loadapp() the django app

Re: IOError: request data read error

2008-10-15 Thread Graham Dumpleton
On Oct 16, 1:24 am, Wayne Witzel [EMAIL PROTECTED] wrote: Anyone else experiencing this error? I am getting WebApp Error mails, the error occurs 5-10 times a day on my production site. Unable to find a pattern or reproduce it. Currently running under Apache 2.2 andmod_wsgiwith the 0.9.6

Re: error running same pylons app with two different databases under mod_wsgi

2008-10-08 Thread Graham Dumpleton
On Oct 8, 9:07 pm, Dunk Fordyce [EMAIL PROTECTED] wrote: Hello, We've got a bit of an odd error with sqlalchemy. The situation is we're running the same pylons app under two subdomains each connected to a different database. Each app sits in its own virtualenv but is the same code. Each

Re: error running same pylons app with two different databases under mod_wsgi

2008-10-08 Thread Graham Dumpleton
I have seen a number of times where people have setup WSGIDaemonProcess directive to create daemon process groups, but then forget to also setup WSGIProcessGroup directive in appropriate context to delegate application to daemon process. That or if they do add WSGIProcessGroup directive, they

Re: HEAD request and internal server error

2008-09-16 Thread Graham Dumpleton
On Sep 17, 10:59 am, Petr Kobalíček [EMAIL PROTECTED] wrote: Hi Wyatt, my biggest problem with this is that HEAD requests are used by bots, so the pylons pages are not indexable at all. This is big problem for me and I don't know how to solve this, because we are creating ecommerce

Re: Debugging failed tests with pylons globals

2008-07-09 Thread Graham Dumpleton
On Jul 9, 6:22 am, Mike Orr [EMAIL PROTECTED] wrote: Having one SOP, pylons.app, containing all the Pylons globals has long been suggested by me.  The value could also be attached to the controller instance -- one attribute instead of several.  That would be for users who object to getting

Re: Debugging failed tests with pylons globals

2008-07-09 Thread Graham Dumpleton
On Jul 10, 3:12 pm, Mike Orr [EMAIL PROTECTED] wrote: On Wed, Jul 9, 2008 at 7:04 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: On Jul 9, 6:22 am, Mike Orr [EMAIL PROTECTED] wrote: Having one SOP, pylons.app, containing all the Pylons globals has long been suggested by me

Re: Adding content-length in all responses

2008-06-18 Thread Graham Dumpleton
On Jun 18, 12:58 pm, Shannon -jj Behrens [EMAIL PROTECTED] wrote: On Mon, Jun 16, 2008 at 4:11 PM, Agustín (Cucho) Villena [EMAIL PROTECTED] wrote: Hi! At work we need to add the content-length header in all our responses, but we don't want to hack any method in our controllers to do

Re: Plyons WSGI on Apache2.2

2008-06-17 Thread Graham Dumpleton
On Jun 17, 6:55 pm, Wichert Akkerman [EMAIL PROTECTED] wrote: Previously Graham Dumpleton wrote: Read:  http://code.google.com/p/modwsgi/wiki/ConfigurationIssues Not sure why you want run a single thread. From memory would only want to do that if trying to attach gdb to daemon

Re: Plyons WSGI on Apache2.2

2008-06-17 Thread Graham Dumpleton
On Jun 17, 7:24 pm, Wichert Akkerman [EMAIL PROTECTED] wrote: Previously Graham Dumpleton wrote: Is Paste#evalerror the same as EvalException or something different? It's an entry point which maps to paste.evalexception.middleware.make_eval_exception which indeed sets up EvalException

Re: Plyons WSGI on Apache2.2

2008-06-16 Thread Graham Dumpleton
Read: http://code.google.com/p/modwsgi/wiki/ConfigurationIssues Not sure why you want run a single thread. From memory would only want to do that if trying to attach gdb to daemon process and debug at C code level. Graham On Jun 16, 3:52 am, Chris [EMAIL PROTECTED] wrote: I've gotten

Re: advice with configuration/scaling a live Pylons app.

2008-05-30 Thread Graham Dumpleton
On May 30, 12:56 pm, Mike Orr [EMAIL PROTECTED] wrote: On Thu, May 29, 2008 at 4:30 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: On May 29, 7:29 pm, Alex Marandon [EMAIL PROTECTED] wrote: 2008/5/29 Alex Marandon [EMAIL PROTECTED]: 2008/5/28 SamDonaldson [EMAIL PROTECTED

Re: advice with configuration/scaling a live Pylons app.

2008-05-29 Thread Graham Dumpleton
On May 29, 7:29 pm, Alex Marandon [EMAIL PROTECTED] wrote: 2008/5/29 Alex Marandon [EMAIL PROTECTED]: 2008/5/28 SamDonaldson [EMAIL PROTECTED]: Running ab benchmark tests revealed many requests were failing. Should I be starting MORE Paster processes to handle the load?  Is this the

Re: Deleting PATH_INFO in WSGI 2

2008-05-22 Thread Graham Dumpleton
Mike Orr wrote: On Wed, Apr 30, 2008 at 6:21 AM, Ian Bicking [EMAIL PROTECTED] wrote: Yannick Gingras wrote: Ian Bicking [EMAIL PROTECTED] writes: For this particular problem, I can work around the slashes collapsing with a regexp but it would indeed be nice to have a general

Re: Deployment Question

2008-05-21 Thread Graham Dumpleton
On May 21, 5:25 pm, Cliff Wells [EMAIL PROTECTED] wrote: On Tue, 2008-05-20 at 18:13 -0700, Graham Dumpleton wrote: If one really has to use a software proxy, then also perhaps look at dedicated solutions like Pound. It may be the case that nginx serves okay as a proxy, but it isn't

Re: Deployment Question

2008-05-21 Thread Graham Dumpleton
On May 22, 5:20 am, Cliff Wells [EMAIL PROTECTED] wrote: Sites that are amongst the largest on the internet fall into a corner case in my mind.  As Mike pointed out, sites have an unrealistic expectation of traffic.  I've been involved in the average cases. As have I.  But I'm going to

Re: Deployment Question

2008-05-20 Thread Graham Dumpleton
Cliff Wells wrote: On Tue, 2008-05-20 at 13:49 -0400, Ross Vandegrift wrote: On Mon, May 19, 2008 at 09:10:27PM -0700, Jonathan Vanasco wrote: so is Apache considered to be a good thing (through mod_wsgi , mod_python , or other ?) i've been doing mod_perl dev for years, and have

Re: Deployment Question

2008-05-20 Thread Graham Dumpleton
On May 21, 1:09 am, Jonathan Vanasco [EMAIL PROTECTED] wrote: If you are going to run a large site which is able to respond well to bursts in traffic, running Python embedded in Apache running prefork MPM, with huge amounts of memory in the box is generally the best approach. This is

Re: Deployment Question

2008-05-19 Thread Graham Dumpleton
On May 20, 2:10 pm, Jonathan Vanasco [EMAIL PROTECTED] wrote: so is Apache considered to be a good thing (through mod_wsgi , mod_python , or other ?) i've been doing mod_perl dev for years, and have had some experience with mod_python -- generally speaking, my experience is that if you can

Re: Multiple Pylons instances, processor affinity, and threads

2008-04-26 Thread Graham Dumpleton
On Apr 25, 4:59 am, Devin Torres [EMAIL PROTECTED] wrote:  Use Apache and mod_wsgi and you have all that you want except playing  with 'processor affinity'. This is because Apache is multi process by  design and thus can properly make use of multiple CPUs. A lot of what  goes on in Apache

Re: Multiple Pylons instances, processor affinity, and threads

2008-04-23 Thread Graham Dumpleton
On Apr 24, 3:51 am, Devin Torres [EMAIL PROTECTED] wrote: So we're using Pylons and Python in general for our new company platform. We just bought a server with 4 cores to help us reach our scalability goals, but there are a few questions I'm interested in asking the Pylons community. I

Re: EvalExceptions with apache

2008-04-19 Thread Graham Dumpleton
Also read section 'Browser Based Debugger' of: http://code.google.com/p/modwsgi/wiki/DebuggingTechniques to find out why you had the problem in the first place. Graham On Apr 20, 4:32 am, petr kobalicek [EMAIL PROTECTED] wrote: I have probabbly solved this by using: set debug = false

Re: Are you going to convert Pylons code into Python 3000?

2008-03-04 Thread Graham Dumpleton
Jose Galvez wrote: this is an interesting issue, because I would suspect that all our pylons applications will have to be converted as well as the pylons base code. I know that there is going to be a program which will automate the translation, but not having used it I don't know what issues

Re: [Web-SIG] Are you going to convert Pylons code into Python 3000?

2008-03-04 Thread Graham Dumpleton
On 05/03/2008, Martijn Faassen [EMAIL PROTECTED] wrote: Hey, On Wed, Mar 5, 2008 at 12:05 AM, Graham Dumpleton [EMAIL PROTECTED] wrote: [snip] Personally I believe that WSGI 1.0 should die along with Python 2.X. I believe that WSGI 2.0 should be developed to replace

Re: how do i create a custom internal server error page? .htaccess?

2008-02-20 Thread Graham Dumpleton
On Feb 21, 1:40 pm, johnnyice [EMAIL PROTECTED] wrote: Hi! When I turn debug to false and there is a problem with my code I am redirected to a blank page that reads internal server error. okay, that is supposed to happen... but I want my chrome around that. usually i would just define a

Re: Issues running Pylons with mod_wsgi on Windows

2008-01-18 Thread Graham Dumpleton
On Jan 19, 8:25 am, Localhost [EMAIL PROTECTED] wrote: David,   You need to run the command 'python setup.py develop' (no quotes) in the directory: C:\Program Files\Python25\Scripts\helloworld\ since Python is unable to find the directory where helloworld is located. This should help. That

Re: Issues running Pylons with mod_wsgi on Windows

2008-01-16 Thread Graham Dumpleton
On Jan 17, 2:43 pm, David [EMAIL PROTECTED] wrote: The article I've been working from is:http://wiki.pylonshq.com/display/pylonscookbook/mod_wsgi+and+workinge... It seems to be the simplest route, though I can't get it to work properly. Through the step where I verify mod_wsgi works, which

Re: Issues running Pylons with mod_wsgi on Windows

2008-01-16 Thread Graham Dumpleton
an isolated Python base environment. We are trying to sort out if it does or not at the moment. If you don't need an isolated base environment, remainder of recipe probably fine. Graham On Jan 17, 4:46 pm, Graham Dumpleton [EMAIL PROTECTED] wrote: On Jan 17, 2:43 pm, David [EMAIL PROTECTED] wrote

Re: Pylons as a WSGI application under Apache

2008-01-04 Thread Graham Dumpleton
On Jan 4, 6:02 pm, artyom.shalkhakov [EMAIL PROTECTED] wrote: Hello, I've tried to run Pylons as a WSGI application using apache2.2 and mod_wsgi2.0. So far simple 'hello world' applications work fine (Pylons through paste serve works okay, too). When I try to run Pylons under mod_wsgi, I

Re: Pylons as a WSGI application under Apache

2008-01-04 Thread Graham Dumpleton
On Jan 5, 11:46 am, Ian Bicking [EMAIL PROTECTED] wrote: Graham Dumpleton wrote: On Jan 4, 6:02 pm, artyom.shalkhakov [EMAIL PROTECTED] wrote: Hello, I've tried to run Pylons as a WSGI application using apache2.2 and mod_wsgi2.0. So far simple 'hello world' applications work fine

Re: Pylons as a WSGI application under Apache

2008-01-04 Thread Graham Dumpleton
On Jan 5, 12:55 pm, Graham Dumpleton [EMAIL PROTECTED] wrote: On Jan 5, 11:46 am, Ian Bicking [EMAIL PROTECTED] wrote: Graham Dumpleton wrote: On Jan 4, 6:02 pm, artyom.shalkhakov [EMAIL PROTECTED] wrote: Hello, I've tried to run Pylons as a WSGI application using apache2.2

Re: Pylons in production

2008-01-03 Thread Graham Dumpleton
there. :-) Graham On Jan 2, 8:47 pm, Graham Dumpleton [EMAIL PROTECTED] wrote: On Jan 3, 5:14 am, Matt Haggard [EMAIL PROTECTED] wrote: I'm (in the process of) using pylons in a production environment and still have a few questions: 1) Do I really have to restart the server every time I

Re: Pylons in production

2008-01-02 Thread Graham Dumpleton
On Jan 3, 5:14 am, Matt Haggard [EMAIL PROTECTED] wrote: I'm (in the process of) using pylons in a production environment and still have a few questions: 1) Do I really have to restart the server every time I make a change (controller/model)?  I can foresee making many changes and some which

Re: mod_wsgi and pylons, Logging

2007-12-20 Thread Graham Dumpleton
9:47 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: I am only referring to anything output directly via sys.stderr. Any messages output via wsgi.errors passed in the WSGI environment, which is how most WSGI application would tend to log, would go to the log file associated

Re: mod_wsgi and pylons, Logging

2007-12-19 Thread Graham Dumpleton
logging config and without the hack mentioned in this thread. On a dual proc, dual core amd64 setup btw -jeff On Nov 17, 8:44 pm, Graham Dumpleton [EMAIL PROTECTED] wrote: On Nov 17, 3:33 pm, PyDevler [EMAIL PROTECTED] wrote: When I previously mentioned invistigating. I managed to get

Re: mod_wsgi and pylons, Logging

2007-12-19 Thread Graham Dumpleton
we do not, which seems the opposite of what you say... except that we don't get the errors in the main apache log either when in daemon mode. This is Gentoo btw. -jeff On Dec 19, 2007 6:28 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: Which Apache error log file are you looking in? Do

  1   2   >