[modwsgi] Re: Versions 1.5 and 2.2 of mod_wsgi now available.

2008-08-22 Thread Graham Dumpleton
2008/8/22 Nimrod A. Abing [EMAIL PROTECTED]: Important changes are file descriptor leaks on a graceful restart in both versions and for version 2.2 possible truncation of data when using wsgi.file_wrapper. An upgrade would be recommended especially due to the latter if using wsgi.file_wrapper

[modwsgi] Re: mod_wsgi 2.2 seems to be breaking CGI

2008-08-23 Thread Graham Dumpleton
Are you using mod_cgi or mod_cgid? Graham 2008/8/23 Douglas Thrift [EMAIL PROTECTED]: Hello, This is really strange, but after upgrading from 2.1 I was looking at my website and noticed that all of my CGI scripts were returning 500 errors and in the log it was just saying Premature end of

[modwsgi] Re: Versions 1.5 and 2.2 of mod_wsgi now available.

2008-08-23 Thread Graham Dumpleton
2008/8/23 Nimrod A. Abing [EMAIL PROTECTED]: On Sat, Aug 23, 2008 at 1:33 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/8/22 Nimrod A. Abing [EMAIL PROTECTED]: Important changes are file descriptor leaks on a graceful restart in both versions and for version 2.2 possible truncation

[modwsgi] Re: mod_wsgi 2.2 seems to be breaking CGI

2008-08-23 Thread Graham Dumpleton
[EMAIL PROTECTED] http://www.douglasthrift.net - Original Message - From: Graham Dumpleton [EMAIL PROTECTED] To: modwsgi@googlegroups.com Sent: Saturday, August 23, 2008 3:57 AM Subject: [modwsgi] Re: mod_wsgi 2.2 seems to be breaking CGI Are you using mod_cgi or mod_cgid? Graham

[modwsgi] Version 2.3 of mod_wsgi now available.

2008-08-23 Thread Graham Dumpleton
This quick turn around version is to fix problem with 2.2 which caused CGI scripts to fail. See: http://groups.google.com/group/modwsgi/browse_frm/thread/79a86f8faffe7dcf The problem may also have possibly affected other Apache modules as well. If you obtained version 2.2 already, it is

[modwsgi] Re: mod_wsgi 2.2 seems to be breaking CGI

2008-08-23 Thread Graham Dumpleton
Released version 2.3 to fix this. 2008/8/23 Graham Dumpleton [EMAIL PROTECTED]: Okay, confirmed on MacOS X 10.5. It only happens when WSGIDaemonProcess directive used with mod_wsgi. Patch is: Index: mod_wsgi.c

[modwsgi] Re: mod_wsgi 2.2 seems to be breaking CGI

2008-08-23 Thread Graham Dumpleton
than one daemon process in the group I guess a mod_wsgi 2.3 will be in order, but need to also fix setprocttitle() call first as well. :-) Graham 2008/8/23 Graham Dumpleton [EMAIL PROTECTED]: Right now I cant see how mod_wsgi 2.2 changes could be affecting CGI scripts, so please excuse me asking

[modwsgi] Re: Versions 1.5 and 2.2 of mod_wsgi now available.

2008-08-23 Thread Graham Dumpleton
2008/8/24 Nimrod A. Abing [EMAIL PROTECTED]: Our config does not have maximum-requests specified. You do bring up a very good way of dealing with scaling issues that we are anticipating. I am not sure what part of what I said is relevant to 'scaling'. In general when scaling is the topic, I

[modwsgi] Re: Versions 1.5 and 2.2 of mod_wsgi now available.

2008-08-24 Thread Graham Dumpleton
, Graham Dumpleton [EMAIL PROTECTED] wrote: The plan is to use the system found in Chapter 20 of the Django book: http://www.djangobook.com/en/1.0/chapter20/ See figure 20-4 All the Django app servers will be running mod_wsgi and will be placed behind a server running perlbal or Apache

[modwsgi] Re: Version 2.3 of mod_wsgi now available.

2008-08-24 Thread Graham Dumpleton
Damn, forgot to update the internal version mod_wsgi version numbers again. At least I remember the version string this time. :-) Graham 2008/8/23 Graham Dumpleton [EMAIL PROTECTED]: This quick turn around version is to fix problem with 2.2 which caused CGI scripts to fail. See: http

[modwsgi] Re: Authkit

2008-08-26 Thread Graham Dumpleton
2008/8/26 Garito [EMAIL PROTECTED]: Anyone has a good example or tutorial about how to integrate Authkit with mod_wsgi? As mod_wsgi is just a WSGI implementation, anything which explains how to use AuthKit for WSGI should give you want you want. I haven't read it, but perhaps have a look at

[modwsgi] WSGI support and Cherokee HTTPd

2008-08-26 Thread Graham Dumpleton
FYI. I manage to get drawn into posting a big long rant about mod_wsgi in followup to some comments about adding WSGI support to Cherokee HTTPd. The rant may be partly of interest to some: http://groups.google.com/group/cherokee-http/browse_frm/thread/d5506804396f9a6c?hl=en Now if I can only

[modwsgi] Comments on a Django/mod_wsgi blog post.

2008-08-26 Thread Graham Dumpleton
Since I am pointing out posts elsewhere where I have been ranting. Here is another one in followup to someones blog post about Django and mod_wsgi. In this case was mainly responding to someone elses comment rather than actual blog. Again, the comments may be of interest.

[modwsgi] Re: Improving the mod_wsgi documentation.

2008-08-27 Thread Graham Dumpleton
2008/8/27 Graham Dumpleton [EMAIL PROTECTED]: As part of the process of improving wiki documentation for mod_wsgi, which everyone is encouraging me to do, I have extracted and trimmed slightly the build and installation notes from the README in the source code and stuck them in a wiki

[modwsgi] Re: Mercurial and mod_wsgi.

2008-09-01 Thread Graham Dumpleton
2008/9/1 Manuzhai [EMAIL PROTECTED]: On Mon, Sep 1, 2008 at 2:00 AM, Graham Dumpleton [EMAIL PROTECTED] wrote: I already have to tread gingerly around people involved with a number of different Python projects because I took issue with their software and they didn't like it. Some others

[modwsgi] Re: Performance; PHP vs CGI vs mod_wsgi

2008-09-03 Thread Graham Dumpleton
2008/9/4 Joe [EMAIL PROTECTED]: Brett Hoerner wrote: On Wed, Sep 3, 2008 at 6:59 PM, Joe [EMAIL PROTECTED] wrote: I've just converted a PHP (Apache 2.2 mod_php5) application first to Python CGI and then to mod_wsgi, so I decided to benchmark some 40-odd representative pages because I

[modwsgi] Re: Performance; PHP vs CGI vs mod_wsgi

2008-09-03 Thread Graham Dumpleton
Your WSGI application entry point is coded wrongly. See comments below, but at least make fix mentioned below. 2008/9/4 Joe [EMAIL PROTECTED]: Graham Dumpleton wrote: Which indicates one script for all URLs. I am presuming you had one script for each URL with PHP rather than doing

[modwsgi] Re: Limit the memory of each daemon process ...

2008-09-04 Thread Graham Dumpleton
. Bad me. :-( Graham Regards, Clodoaldo Thanks -Mic 2008/9/4 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/4 Mic Pringle [EMAIL PROTECTED]: Hi, I'm looking to use mod_wsgi to implement a shared hosting scheme for Django and was wondering if it was possible to set a limit/cap

[modwsgi] Re: Limit the memory of each daemon process ...

2008-09-05 Thread Graham Dumpleton
that should cut out some of the security worries mentioned. I shall look forward to see what else this thread brings :-) -Mic 2008/9/5 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/5 Brian Smith [EMAIL PROTECTED]: Graham Dumpleton wrote: 2008/9/5 Brian Smith [EMAIL PROTECTED]: You cannot

[modwsgi] Re: SQLAlchemy and modwsgi

2008-09-05 Thread Graham Dumpleton
2008/9/5 Manuzhai [EMAIL PROTECTED]: On Fri, Sep 5, 2008 at 2:47 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: How many processes/threads is application running under and is that embedded mode or daemon mode? Embedded mode: WSGIScriptAlias / /home/djc/src/ska/ska.wsgi Apache prefork

[modwsgi] Re: SQLAlchemy and modwsgi

2008-09-05 Thread Graham Dumpleton
On WSGIDaemonProcess users user=cnobile group=cnobile \ processes=2 threads=2 maximum-requests=1000 WSGIProcessGroup users WSGIReloadMechanism Process Hope this helps somebody. -Carl On Fri, Sep 5, 2008 at 8:47 AM, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/5 Manuzhai [EMAIL

[modwsgi] Re: Improving the mod_wsgi documentation.

2008-09-05 Thread Graham Dumpleton
It is late and so its probably riddled with errors since I am tired, but have pushed onto the wiki: http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide Anyway, first attempt at least. :-) Sorry, need some sleep now. Post any errors you find. Graham 2008/8/28 Graham Dumpleton

[modwsgi] Re: Looks like Django 1.0 has been released.

2008-09-05 Thread Graham Dumpleton
2008/9/6 Brian Smith [EMAIL PROTECTED]: Graham Dumpleton wrote: Yeah, it keeps me from slacking off and loosing focus. For example, would much prefer to work out how to get mod_wsgi trunk working on Python 3.0 again. Have at least got it compiling again with Python 3.0b3, but crashes

[modwsgi] New logging middleware example in documentation.

2008-09-05 Thread Graham Dumpleton
For my afternoons diversion, have documented a new logging middleware in documentation. Whereas previous example logged just request headers and response headers to Apache error log file. This one will record those as well as request and response content. Each of these things is stored in a

[modwsgi] Re: importing modules in .wsgi file

2008-09-16 Thread Graham Dumpleton
2008/9/17 MilesTogoe [EMAIL PROTECTED]: on the local development server using a manage.py file, this works: from app import utils from app.application import App assuming folder structure like: project manage.py app utils.py application.py but in .wsgi file it does not work

[modwsgi] Re: Bad header with mod_proxy, mod_wsgi and paste. Possible bug

2008-09-16 Thread Graham Dumpleton
BTW, I hope you are reading response here as paste-users list rejects outright my response so you will not see it there. Graham 2008/9/17 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/17 Jorge Vargas [EMAIL PROTECTED]: Hello I'm having an issue running the following setup. My hosting provider

[modwsgi] Re: keeps getting - Forbidden You don't have permission to access / on this server.

2008-09-16 Thread Graham Dumpleton
2008/9/17 Wayne [EMAIL PROTECTED]: yes, you are right, thanks alot. I just disabled the security level, I thought it will turn off the whole thing, after I disabled SELinux, it works fine now. If at all interested in getting SELinux extensions to work, note my comments in:

[modwsgi] Re: Bad header with mod_proxy, mod_wsgi and paste. Possible bug

2008-09-17 Thread Graham Dumpleton
thank you very much for all your help. See response below. On Tue, Sep 16, 2008 at 11:02 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/17 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/17 Graham Dumpleton [EMAIL PROTECTED]: Note that mod_wsgi doesn't generate a 'Connection' header

[modwsgi] Re: ImportError when .py files are not included

2008-09-17 Thread Graham Dumpleton
2008/9/18 Santiago Aguiar [EMAIL PROTECTED]: Hi everyone! I'm migrating a django app from mod_python to mod_wsgi, and I'm having some issues. My app is installed under site-packages but I only include the .pyc files. When requesting a page, the wsgi script dies on an ImportError when

[modwsgi] Re: trouble with django and trailing slashes.

2008-09-17 Thread Graham Dumpleton
2008/9/18 Walter Cruz [EMAIL PROTECTED]: For the sake of the archives and spiders, it workerd after FORCE_SCRIPT_NAME='' has been added to settings.py in django. What version of Django are you using? Graham --~--~-~--~~~---~--~~ You received this message

[modwsgi] Re: trouble with django and trailing slashes.

2008-09-17 Thread Graham Dumpleton
2008/9/18 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/18 Walter Cruz [EMAIL PROTECTED]: For the sake of the archives and spiders, it workerd after FORCE_SCRIPT_NAME='' has been added to settings.py in django. What version of Django are you using? And also post what you have in your urls.py

[modwsgi] Re: trouble with django and trailing slashes.

2008-09-17 Thread Graham Dumpleton
2008/9/18 Walter Cruz [EMAIL PROTECTED]: On Wed, Sep 17, 2008 at 9:37 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/18 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/18 Walter Cruz [EMAIL PROTECTED]: For the sake of the archives and spiders, it workerd after FORCE_SCRIPT_NAME='' has

[modwsgi] Re: trouble with django and trailing slashes.

2008-09-17 Thread Graham Dumpleton
2008/9/18 Walter Cruz [EMAIL PROTECTED]: hum.. my prefix is 'unb' :) (I had simplified the case in the first e-mail). Should I take it off the urls.py? Let me quote the documentation below. All that below applies only to pre Django 1.0. So if using Django 1.0 and you have made both the

[modwsgi] Re: Hello World example crashes Apache

2008-09-18 Thread Graham Dumpleton
Anyone else using Adal's precompiled binaries on Vista? Windows doesn't generally suffer the range of shared library versioning problems as UNIX systems, so bit in the dark as what to suggest. I presume Adal's binaries were originally compiled against Windows XP. Don't know if that matters. I

[modwsgi] Re: Python 2.6 and migration warnings flag for Python 3.0.

2008-09-18 Thread Graham Dumpleton
2008/9/19 Brian Smith [EMAIL PROTECTED]: Graham Dumpleton wrote: In subversion trunk of mod_wsgi for version 3.0, you can now if using Python 2.6 set: WSGIPy3kWarningFlag On with effect hopefully being same as -3 option to 'python' executable. Note that haven't got Python 2.6

[modwsgi] Re: trouble with django and trailing slashes.

2008-09-18 Thread Graham Dumpleton
2008/9/19 bobince [EMAIL PROTECTED]: I'm not using Django, but there's definitely something wacky about trailing slashes in mod_wsgi (2.3, running on Apache 2.2). It's not a problem for me, but it's rather curious. With a WSGI app mounted at /app, a request to /app/x/y/z gives (as

[modwsgi] Re: trouble with django and trailing slashes.

2008-09-18 Thread Graham Dumpleton
2008/9/19 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/19 bobince [EMAIL PROTECTED]: I'm not using Django, but there's definitely something wacky about trailing slashes in mod_wsgi (2.3, running on Apache 2.2). It's not a problem for me, but it's rather curious. With a WSGI app mounted

[modwsgi] Re: mod_wsgi + rpy (R connector to Python)

2008-09-18 Thread Graham Dumpleton
Message forwarded to mod_wsgi group on Google groups. http://groups.google.com/group/modwsgi Will be a few hours before I can response properly. In the interim, read through: http://code.google.com/p/modwsgi/wiki/ApplicationIssues

[modwsgi] Re: mod_wsgi + AMD64

2008-09-19 Thread Graham Dumpleton
2008/9/20 TheIvIaxx [EMAIL PROTECTED]: As i understand it, i will need to build mod_wsgi for Vista 64 on the AMD64 architecture. Unfortunately i have never built a python module :) That is okay, it isn't a Python module so that will not help. It is actually worse than a Python module, it

[modwsgi] Re: wsgi info()

2008-09-19 Thread Graham Dumpleton
2008/9/20 Carl Nobile [EMAIL PROTECTED]: mod_wsgi is not a framework, so don't expect it to generate web pages for you it is a way of using WSGI (Web Service Gateway Interface) with apache only, and is very light weight compared to other alternatives. You could get what you want from

[modwsgi] Re: Authorization

2008-09-19 Thread Graham Dumpleton
2008/9/20 Alex K [EMAIL PROTECTED]: OK, I'll try, btw what is the common way to solve this task? My first idea was to encapsulate file sharing via the application itself (http://host.com/givemefile.py?file_id=1), but I fear about poor performance in this case. If you use wsgi.file_wrapper

[modwsgi] Re: Authorization

2008-09-19 Thread Graham Dumpleton
2008/9/20 Carl Nobile [EMAIL PROTECTED]: Implementing basic auth is fairly easy as compared to digest auth, but be aware that with basic auth your username/password(cookie value) are essentially sent in the clear no encryption is done. Don't mistake base64 encoding for encryption as being

[modwsgi] Re: Authorization

2008-09-19 Thread Graham Dumpleton
2008/9/20 Carl Nobile [EMAIL PROTECTED]: Alex, Basic auth is sent with each end every request that needs authentication. You just add the proper headers in your request and it should all work. Now, something else to think about is that your browser will intercept the first auth request and

[modwsgi] Re: Authorization

2008-09-19 Thread Graham Dumpleton
2008/9/20 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/20 Carl Nobile [EMAIL PROTECTED]: Alex, Basic auth is sent with each end every request that needs authentication. You just add the proper headers in your request and it should all work. Now, something else to think about is that your

[modwsgi] Re: Authorization

2008-09-19 Thread Graham Dumpleton
/Limit /Location May not allow exact codes you want. Would try some things myself, but have guests coming for lunch soon. :-) Graham -Carl On Fri, Sep 19, 2008 at 10:32 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/20 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/20 Carl

[modwsgi] Re: wsgi info()

2008-09-22 Thread Graham Dumpleton
2008/9/23 Brian Smith [EMAIL PROTECTED]: Graham Dumpleton wrote: 2008/9/20 Carl Nobile [EMAIL PROTECTED]: If this existed, you would still need to have a WSGI script file that invokes it. The problem though is that core mod_wsgi is C code only and want to keep it that way. Ie., don't want

[modwsgi] Re: display-name=Blargh!

2008-09-22 Thread Graham Dumpleton
2008/9/23 Thomas Johansson [EMAIL PROTECTED]: Hi mate, Just a tiny request here. It'd be nice if you could provide a proper string to display-name, e.g. httpd %{GROUP}. Or have it append the already existing name. Currently it turns this: \_ /home/simplecodes/webapps/apache/bin/httpd -f

[modwsgi] Re: Trying to install, but getting syntax error

2008-09-23 Thread Graham Dumpleton
it is indeed Apache 2.2. If not then it is Apache 1.3. Graham /usr/sbin/httpd -v Server version: Apache/2.2.9 (Unix) Server built: Sep 22 2008 18:15:03 Cpanel::Easy::Apache v3.2.0 rev4436 Thanks, Dustin On Sep 22, 5:53 pm, Graham Dumpleton [EMAIL PROTECTED] wrote: How are you installing

[modwsgi] Re: Trying to install, but getting syntax error

2008-09-23 Thread Graham Dumpleton
2008/9/24 nerdydork [EMAIL PROTECTED]: I ran strings -a /usr/lib/httpd/modules/mod_wsgi.so | grep AP2 and still no output. I looked in /usr/include/httpd/ and found ap_release.h. I opened it and noticed ... #define AP_SERVER_BASEVENDOR Apache Software Foundation #define

[modwsgi] Re: mod_wsgi

2008-09-23 Thread Graham Dumpleton
is handled by the second server. That way I will always be able to upgrade my slices if I ever need to scale more. On Sep 23, 7:26 am, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/23 Jason Broyles [EMAIL PROTECTED]: Graham, How are you today? First off, thanks for mod_wsgi. I am trying

[modwsgi] Re: Bad header with mod_proxy, mod_wsgi and paste. Possible bug

2008-09-24 Thread Graham Dumpleton
2008/9/25 Brian Smith [EMAIL PROTECTED]: Graham Dumpleton wrote: 2008/9/19 Brian Smith [EMAIL PROTECTED]: I think there is also the problem that you cannot know where to parse things using the quoted-string production and where you can parse things using the TEXT production (which

[modwsgi] Re: mod_wsgi

2008-09-24 Thread Graham Dumpleton
prematurely. Just get your application running first. Graham Thanks again for all of your input. On Sep 24, 12:18 am, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/23 issya [EMAIL PROTECTED]: Thanks for the follow-up and thanks for adding it to the mailing list. I should have did

[modwsgi] Re: mod_wsgi

2008-09-24 Thread Graham Dumpleton
. This is because a lot of stuff is done entirely in C code in mod_wsgi or Apache itself. Apache can also be used in multi process configuration which avoids the issue entirely. Graham On Sep 24, 9:46 pm, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/25 issya [EMAIL PROTECTED]: The version of Apache

[modwsgi] Observations about setuptools fork and WSGI.

2008-09-24 Thread Graham Dumpleton
For those who haven't seen it, there has been a fork of seuptools for Python. http://tarekziade.wordpress.com/2008/09/24/distribute-a-setuptools-fork/ Why do I find this interesting. Well it is the comments: The project is run by one single man, who is really busy on other things as well. I

[modwsgi] Re: Observations about setuptools fork and WSGI.

2008-09-25 Thread Graham Dumpleton
2008/9/25 William Dode [EMAIL PROTECTED]: On 25-09-2008, Graham Dumpleton wrote: [...] This is why I see the fork of setuptools being interesting. That is, someone else has got frustrated enough with something else produced by I just read that there is an other one : http

[modwsgi] Re: Observations about setuptools fork and WSGI.

2008-09-25 Thread Graham Dumpleton
2008/9/25 Manuzhai [EMAIL PROTECTED]: On Thu, Sep 25, 2008 at 12:07 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: Except that recent Python 3.0 betas/release candidates broke sub interpreter support Is that registered as a blocker yet? At the moment it is: http://bugs.python.org

[modwsgi] Re: Observations about setuptools fork and WSGI.

2008-09-25 Thread Graham Dumpleton
2008/9/25 Manuzhai [EMAIL PROTECTED]: On Thu, Sep 25, 2008 at 7:14 AM, Graham Dumpleton [EMAIL PROTECTED] wrote: This is why I see the fork of setuptools being interesting. That is, someone else has got frustrated enough with something else produced by the same author to get to that point

[modwsgi] Re: mod_wsgi

2008-09-25 Thread Graham Dumpleton
it applies to embedded mode. In daemon mode you can touch the WSGI script file and it will cause daemon processes for just that application to be restarted. See: http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode Graham On Sep 25, 12:14 am, Graham Dumpleton [EMAIL PROTECTED] wrote

[modwsgi] Warning about virtualenv 1.3.

2008-09-25 Thread Graham Dumpleton
Looks like virtualenv 1.3 has just come out. http://pypi.python.org/pypi/virtualenv I note though that documentation now no longer mentions using site.addsitedir() to make use of virtual environment with mod_python and mod_wsgi. Instead there is some new mechanism which requires doing an

[modwsgi] Re: Warning about virtualenv 1.3.

2008-09-26 Thread Graham Dumpleton
2008/9/26 Graham Dumpleton [EMAIL PROTECTED]: Looks like virtualenv 1.3 has just come out. http://pypi.python.org/pypi/virtualenv I note though that documentation now no longer mentions using site.addsitedir() to make use of virtual environment with mod_python and mod_wsgi. Instead

[modwsgi] Anyone for SSO across Django and Trac?

2008-09-26 Thread Graham Dumpleton
This may be of interest to some: http://sweetjesus26.livejournal.com/19936.html I have actually been ignoring Apache 2.3+ up till now, but the mod_session/mod_auth_form stuff could be extremely useful where wanting to have SSO across multiple Python applications such as Trac and Django. Will

[modwsgi] Re: Anyone for SSO across Django and Trac?

2008-09-26 Thread Graham Dumpleton
2008/9/26 Graham Dumpleton [EMAIL PROTECTED]: This may be of interest to some: http://sweetjesus26.livejournal.com/19936.html I have actually been ignoring Apache 2.3+ up till now, but the mod_session/mod_auth_form stuff could be extremely useful where wanting to have SSO across multiple

[modwsgi] Re: nginx in front of apache/mod_wsgi config issue

2008-09-26 Thread Graham Dumpleton
2008/9/27 Prairie Dogg [EMAIL PROTECTED]: I posted this to django-users yesterday with no response, thought that some folks here might have run into this problem. Instead of repeating myself here's the real quick summary: Stack: Ubuntu Hardy Apache 2.2 MPM Worker Nginx (reverse proxy in

[modwsgi] Re: Segmentation fault - premature end of script headers

2008-09-27 Thread Graham Dumpleton
Are you using the Python installation and Apache modules that WebFaction supplies or have you built any yourself from source code? Have you installed any third party Python modules yourself? Are you running PHP in the same Apache installation? Does your Django application create any background

[modwsgi] Re: nginx in front of apache/mod_wsgi config issue

2008-09-28 Thread Graham Dumpleton
2008/9/27 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/27 Prairie Dogg [EMAIL PROTECTED]: I posted this to django-users yesterday with no response, thought that some folks here might have run into this problem. Instead of repeating myself here's the real quick summary: Stack: Ubuntu Hardy

[modwsgi] Re: Warning about virtualenv 1.3.

2008-09-28 Thread Graham Dumpleton
Dumpleton [EMAIL PROTECTED]: 2008/9/26 Graham Dumpleton [EMAIL PROTECTED]: Looks like virtualenv 1.3 has just come out. http://pypi.python.org/pypi/virtualenv I note though that documentation now no longer mentions using site.addsitedir() to make use of virtual environment with mod_python

[modwsgi] Re: Annoying behavior, mod_wsgi caching?

2008-09-28 Thread Graham Dumpleton
2008/9/28 ianmendiola [EMAIL PROTECTED]: I'm running on embedded mode. Read: http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode Graham On Sep 28, 4:57 am, William Dode [EMAIL PROTECTED] wrote: On 28-09-2008, ianmendiola wrote: Hello, I've noticed that while developing a web

[modwsgi] Modelling how mod_wsgi daemon processes work.

2008-09-28 Thread Graham Dumpleton
FYI. http://d.hatena.ne.jp/pyxis-dev/20080606/1212770381 No I can't read Japanese. One can use Google to translate though (http://translate.google.com). Not sure how accurate the article is, as not sure how true to the original the Google translation is. Graham

[modwsgi] Re: Annoying behavior, mod_wsgi caching?

2008-09-28 Thread Graham Dumpleton
2008/9/29 MilesTogoe [EMAIL PROTECTED]: ianmendiola wrote: Ok, So this has definitely isolated the problem. A lot of the work I am doing is done in separate python modules that have been imported into the main script file. In regards to the example of editing settings.py in django and

[modwsgi] Re: mod_wsgi on Python 3.0 (was Re: Python 2.6 and migration warnings flag for Python 3.0.)

2008-09-29 Thread Graham Dumpleton
. On Sep 23, 1:01 am, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/19 Brian Smith [EMAIL PROTECTED]: Graham Dumpleton wrote: 2008/9/19 Brian Smith [EMAIL PROTECTED]: In Python 3.0 I do conversions toUnicode, ie., default string type in that version, as per discussion summary

[modwsgi] Re: Annoying behavior, mod_wsgi caching?

2008-09-29 Thread Graham Dumpleton
part of configuration which says how your WSGI script file is mapped for mod_wsgi, can tell you exactly what to do. Graham Thanks, Ian On Sep 28, 11:51 pm, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/29 MilesTogoe [EMAIL PROTECTED]: ianmendiola wrote: Ok, So this has

[modwsgi] Re: mod_wsgi on Python 3.0 (was Re: Python 2.6 and migration warnings flag for Python 3.0.)

2008-09-29 Thread Graham Dumpleton
2008/9/30 Toshio Kuratomi [EMAIL PROTECTED]: For response headers and content, the application can either generate bytes and thus control the encoding, or it will fallback to trying to convert it as latin-1 ifUnicodesupplied, so like wsgi.input, no problem there. Unlike wsgi.input where the

[modwsgi] Re: Running roundup directly under mod_wsgi possible?

2008-09-29 Thread Graham Dumpleton
Also, tracker_home probably should be an absolute path. I think that example in their documentation assumes you are running in parent directory of where stuff installed. That will not be the case with Apache/mod_wsgi. Graham 2008/9/30 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/30 Van Gale

[modwsgi] Re: Running roundup directly under mod_wsgi possible?

2008-09-29 Thread Graham Dumpleton
2008/9/30 Van Gale [EMAIL PROTECTED]: Graham Dumpleton wrote: Also, tracker_home probably should be an absolute path. I think that example in their documentation assumes you are running in parent directory of where stuff installed. That will not be the case with Apache/mod_wsgi. Thanks

[modwsgi] Re: mod_wsgi on Python 3.0 (was Re: Python 2.6 and migration warnings flag for Python 3.0.)

2008-09-30 Thread Graham Dumpleton
2008/9/30 Toshio Kuratomi [EMAIL PROTECTED]: On Sep 29, 4:33 pm, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/30 Toshio Kuratomi [EMAIL PROTECTED]: For response headers and content, the application can either generate bytes and thus control the encoding, or it will fallback

[modwsgi] Re: mod_wsgi on Python 3.0 (was Re: Python 2.6 and migration warnings flag for Python 3.0.)

2008-09-30 Thread Graham Dumpleton
PROTECTED]: On Sep 29, 3:24 pm, Brian Smith [EMAIL PROTECTED] wrote: Toshio Kuratomi wrote: Graham Dumpleton wrote: As to the HTTP request headers, the RFCs say they are effectively latin-1. Thus, all HTTP_? variables in WSGI environ can only be processed as latin-1 when converting

[modwsgi] Re: Segmentation fault - premature end of script headers

2008-09-30 Thread Graham Dumpleton
Not particularly useful unfortunately. Next thing would be to determine if crash happens as a result of import WSGI script file itself, or due to call of WSGI application. Thus at head of WSGI script file add: import sys print sys.stderr, START OF WSGI SCRIPT FILE and at end of WSGI

[modwsgi] Re: Segmentation fault - premature end of script headers

2008-09-30 Thread Graham Dumpleton
2008/9/30 Pigletto [EMAIL PROTECTED]: After switching to WSGIApplicationGroup %{GLOBAL} my application started, but I have few more applications on this apache instance so I can't use this kind of setup. Can you explain to me how WebFaction process/memory limits work? If you don't have

[modwsgi] Re: mod_wsgi on Python 3.0 (was Re: Python 2.6 and migration warnings flag for Python 3.0.)

2008-09-30 Thread Graham Dumpleton
hfile = io.StringIO(b''.join(headers).decode('iso-8859-1')) self.headers = email.parser.Parser(_class=self.MessageClass).parse(hfile) Thus, any WSGI server based on that would have no chance of getting access to headers in byte form. Graham 2008/9/30 Graham Dumpleton [EMAIL

[modwsgi] Re: Segmentation fault - premature end of script headers

2008-09-30 Thread Graham Dumpleton
What do you get if you run: ulimit -a Maybe they have some sort of hard memory limits in place and you are hitting that. Graham 2008/9/30 Pigletto [EMAIL PROTECTED]: Now, again, my application is working with the same setup as before (without GLOBAL). I don't know why this started

[modwsgi] Re: mod_wsgi on Python 3.0 (was Re: Python 2.6 and migration warnings flag for Python 3.0.)

2008-09-30 Thread Graham Dumpleton
2008/9/30 Brian Smith [EMAIL PROTECTED]: mod_wsgi receives a sequence of bytes from apache. It transforms those into unicode by pretending that those bytes are latin-1 and sticks them into SCRIPT_NAME. IMO, mod_wsgi should just drop SCRIPT_NAME and all other non-WSGI environ keys except

[modwsgi] Re: mod_wsgi on Python 3.0 (was Re: Python 2.6 and migration warnings flag for Python 3.0.)

2008-09-30 Thread Graham Dumpleton
2008/10/1 Brian Smith [EMAIL PROTECTED]: mod_wsgi already mangles the URI components too much in SCRIPT_NAME and PATH_INFO (in its defense, it does so because CGI/WSGI require it to for the most part, except for // munging). That is why I fall back to parsing REQUEST_URI myself. In my

[modwsgi] Re: OS X compile problem

2008-09-30 Thread Graham Dumpleton
2008/10/1 Arash Arfaee [EMAIL PROTECTED]: Hi All, I am trying to install modwsgi over my mac. It gave me some error so I updated my Xcode to the latest version however it still doesn't compile. It seems it has a problem with 64-bit: here is the result of ./configure : checking for

[modwsgi] Re: mod_wsgi on Python 3.0 (was Re: Python 2.6 and migration warnings flag for Python 3.0.)

2008-10-01 Thread Graham Dumpleton
2008/10/1 Toshio Kuratomi [EMAIL PROTECTED]: On Sep 30, 4:32 am, Clodoaldo Pinto Neto [EMAIL PROTECTED] wrote: I tested that url with Firefox and Opera in Linux utf-8 and what happens is that Firefox does what Brian says. But testing Firefox in Windows XP it substitutes € for %80 and IE6

[modwsgi] Re: mod_wsgi on Python 3.0 (was Re: Python 2.6 and migration warnings flag for Python 3.0.)

2008-10-01 Thread Graham Dumpleton
2008/10/1 Graham Dumpleton [EMAIL PROTECTED]: 2008/10/1 Toshio Kuratomi [EMAIL PROTECTED]: On Sep 30, 4:32 am, Clodoaldo Pinto Neto [EMAIL PROTECTED] wrote: I tested that url with Firefox and Opera in Linux utf-8 and what happens is that Firefox does what Brian says. But testing Firefox

[modwsgi] Re: mod_wsgi on Python 3.0 (was Re: Python 2.6 and migration warnings flag for Python 3.0.)

2008-10-01 Thread Graham Dumpleton
2008/10/1 Toshio Kuratomi [EMAIL PROTECTED]: Thanks Graham! On Sep 30, 11:45 pm, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/10/1 Toshio Kuratomi [EMAIL PROTECTED]: Can some clearly just tell me what you want me to test. For Python 3.0, if I use a URL: /wsgi/scripts/echo3000.py

[modwsgi] Re: Mod_wsgi

2008-10-02 Thread Graham Dumpleton
2008/10/2 Carlo Barrettara [EMAIL PROTECTED]: Hi Graham, My name is Carlo Barrettara, I'm a co-founder at a start-up company in the mobile space – Polar Mobile. First off, let me say we really appreciate the hard work you've put into mod_wsgi. We're using mod_wsgi for some of our back-end

[modwsgi] Re: Mod_wsgi

2008-10-02 Thread Graham Dumpleton
We're using mod_wsgi for some of our back-end components that utilize Pylons. I'm emailing today in the hopes that I could get a few tips on configuring this apache module. Essentially, we're using Python 2.5 with the latest mod_wsgi (and the latest apache), under a RHEL 5 configuration.

[modwsgi] Python 2.6 and mod_wsgi.

2008-10-02 Thread Graham Dumpleton
I recollect that someone was using Python 2.6 betas or release candidates with mod_wsgi. Can that person or anyone else who has already tried Python 2.6 with mod_wsgi confirm that there would appear to be no problems? BTW, do note that the mod_wsgi code in subversion trunk has new directive:

[modwsgi] Re: threading.local

2008-10-03 Thread Graham Dumpleton
One possibility is that although you think you are using daemon mode, you aren't, and that Apache compiled with worker MPM. This can occur if you don't have WSGIProcessGroup directive set properly to refer to daemon process group setup using WSGIDaemonProcess. Post the mod_wsgi bits of the

[modwsgi] Re: threading.local

2008-10-03 Thread Graham Dumpleton
the behaviour as is, may actually be better as it may protect better against applications which aren't written to clear per thread state properly. Comments? Graham 2008/10/3 Graham Dumpleton [EMAIL PROTECTED]: One possibility is that although you think you are using daemon mode, you aren't

[modwsgi] Re: mime types

2008-10-03 Thread Graham Dumpleton
2008/10/3 Graham Dumpleton [EMAIL PROTECTED]: 2008/10/3 Garito [EMAIL PROTECTED]: Hi! Is there any way to do that mod_wsgi use apache mime types? If you go to /etc/mime.types and add some mime types mod_wsgi works ok with them but if you add them as apache configuration via AddType

[modwsgi] Re: mime types

2008-10-03 Thread Graham Dumpleton
/yanged-page-template','ypt') Think you can also load a whole file of such information. Ie., mimetypes.read_mime_types(filename) Do this at global scope of code file so it is add when first loaded. See Python module documentation. Graham Thanks a lot! On 3 oct, 13:47, Graham Dumpleton [EMAIL

[modwsgi] Re: mime types

2008-10-03 Thread Graham Dumpleton
use read_mime_types() if really wanted to populate with multiple entries. If only a few just use add_type(). You probably need to provide full code for small self contained example rather than just posting a single line snippet without context. Graham Thanks! On 3 oct, 14:52, Graham Dumpleton

[modwsgi] Off on a trip again. Help on mod_wsgi may be a bit spotty for a week.

2008-10-03 Thread Graham Dumpleton
I'm off on a trip for a week. I'll have easy Internet access when away, but whether I will be allowed to use it is a different matter. So, I will try and keep up with emails, but not sure how I'll go. I'll probably be off air at least now for a couple of days as will get shot if I try and read

[modwsgi] Re: mime types

2008-10-03 Thread Graham Dumpleton
2008/10/3 Garito [EMAIL PROTECTED]: Hi! Is there any way to do that mod_wsgi use apache mime types? If you go to /etc/mime.types and add some mime types mod_wsgi works ok with them but if you add them as apache configuration via AddType it doesn't work One of my main goals (as you could

[modwsgi] Re: threading.local

2008-10-04 Thread Graham Dumpleton
as to be compatible with third party C extension modules that do the same. In that case Python internally manages the thread state objects and so they get reused rather than fresh one created each time. Graham 2008/10/3 Graham Dumpleton [EMAIL PROTECTED]: H, I think I know why. It is very

[modwsgi] Re: threading.local

2008-10-04 Thread Graham Dumpleton
2008/10/5 gert [EMAIL PROTECTED]: can threading.local() be used to create a permanent database connection for each interpreter ? The threading.local() dictionary is specific to a thread within an interpreter. As already explained though, because of how mod_wsgi is currently implemented, this

[modwsgi] Re: threading.local

2008-10-05 Thread Graham Dumpleton
2008/10/6 gert [EMAIL PROTECTED]: But how would you launch a mysql connection so i can do loc = threading.local() db = loc.db db.execute(SELECT * FROM Graham,()) when WSGIApplicationGroup %{GLOBAL} is set At a guess, something like: import threading local = threading.local() def

[modwsgi] Re: RuntimeError with Trac

2008-10-05 Thread Graham Dumpleton
2008/10/6 Todd O'Bryan [EMAIL PROTECTED]: I just started hosting some Mercurial repositories on my server with mod_wsgi, and, maybe coincidentally, my Trac setup has started throwing the very popular RuntimeError: instance.__dict__ not accessible in restricted mode. Since it had never done

  1   2   3   4   5   6   7   8   9   10   >