Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-06-22 Thread Russell Keith-Magee
On Tue, Jun 22, 2010 at 6:48 AM, Gustavo Narea wrote: > Hello. > > On Jun 14, 1:39 pm, Russell Keith-Magee > wrote: >> Ok - at this point, I'm broadly happy with your proposals (subject to >> the caveats I've given along the way). The next step is to show us >> actual code. This won't get applied

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-06-21 Thread Gustavo Narea
Hello. On Jun 14, 1:39 pm, Russell Keith-Magee wrote: > Ok - at this point, I'm broadly happy with your proposals (subject to > the caveats I've given along the way). The next step is to show us > actual code. This won't get applied to trunk as a single monolithic > "fix WSGI" patch - it needs to

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-06-16 Thread Gustavo Narea
On 16/06/10 10:48, Graham Dumpleton wrote: > But that will not happen if you use a different hosting mechanism. > Thus you end up with a fiddle as documented in: > > http://wiki.pylonshq.com/display/pylonscookbook/Logging+under+mod_wsgi > > The point I am making is that these hosting system speci

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-06-16 Thread Graham Dumpleton
On Jun 16, 7:32 pm, Gustavo Narea wrote: > Hello. > > On 16/06/10 01:33, Graham Dumpleton wrote: > > > Paste has its own problems. Paste server itself does process > > environment setup that isn't done by other WSGI hosting mechanisms. > > Specifically, it initialises Python logging in a way sui

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-06-16 Thread Gustavo Narea
Hello. On 16/06/10 01:33, Graham Dumpleton wrote: > Paste has its own problems. Paste server itself does process > environment setup that isn't done by other WSGI hosting mechanisms. > Specifically, it initialises Python logging in a way suited to Paste > based applications. Like with Django devel

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-06-15 Thread Graham Dumpleton
On Jun 16, 8:01 am, Gustavo Narea wrote: > Hello. > > Russell said: > > > > > > > > It should be easy, specially since you already use WSGI middleware in > > > that server internally (i.e., the AdminMediaHandler). > > > > In runserver.py, you could replace: > > >    try: > > >        handler = A

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-06-15 Thread Graham Dumpleton
On Jun 16, 8:11 am, Gustavo Narea wrote: > Hello, Graham. > > Graham said: > > > From what I remember of this thread, haven't been following it too > > closely though, I would think the idea of relying on WebOb and Paste > > Deploy is a bad idea. > > > There are bigger issues around WSGI deploym

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-06-15 Thread Gustavo Narea
Hello, Graham. Graham said: > From what I remember of this thread, haven't been following it too > closely though, I would think the idea of relying on WebOb and Paste > Deploy is a bad idea. > > There are bigger issues around WSGI deployment that need to be solved > and using Paste Deploy as it

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-06-15 Thread Gustavo Narea
Hello. Russell said: > > It should be easy, specially since you already use WSGI middleware in > > that server internally (i.e., the AdminMediaHandler). > > > > In runserver.py, you could replace: > >try: > >handler = AdminMediaHandler(WSGIHandler(), admin_media_path) > > > > with: >

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-06-14 Thread Russell Keith-Magee
On Mon, Jun 14, 2010 at 9:00 PM, Graham Dumpleton wrote: > > > On Jun 14, 10:39 pm, Russell Keith-Magee > wrote: >> On Thu, Jun 3, 2010 at 5:04 AM, Gustavo Narea wrote: >> > Hello, Russell et al. >> >> Apologies for the delay in replying -- life has been a little hectic of late. >> >> >> >> >> >

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-06-14 Thread Graham Dumpleton
On Jun 14, 10:39 pm, Russell Keith-Magee wrote: > On Thu, Jun 3, 2010 at 5:04 AM, Gustavo Narea wrote: > > Hello, Russell et al. > > Apologies for the delay in replying -- life has been a little hectic of late. > > > > > > >> > Unlocking the development server so that it could serve a WSGI > >>

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-06-14 Thread Russell Keith-Magee
On Thu, Jun 3, 2010 at 5:04 AM, Gustavo Narea wrote: > Hello, Russell et al. Apologies for the delay in replying -- life has been a little hectic of late. >> > Unlocking the development server so that it could serve a WSGI >> > application other than django.core.handlers.wsgi:WSGIHandler would b

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-06-14 Thread Gustavo Narea
Hello, Not that I want to rush this, but have you had time to read my last email or made a decision? :-) Cheers, - Gustavo. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegro

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-06-02 Thread Gustavo Narea
Hello, Russell et al. I am not saying that Django's WSGI implementation doesn't comply with the specification. In fact, I've been talking about improving "WSGI support" not "WSGI compliance". It does comply with the specification, but just internally without exposing all the WSGI-related function

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-06-02 Thread Russell Keith-Magee
On Sun, May 30, 2010 at 2:07 AM, Gustavo Narea wrote: > Hello, > > On May 28, 6:13 pm, Russell Keith-Magee > wrote: >> This is all very helpful information; thanks for breaking it down like this. >> >> I've talked this over with a few people at the sprints, and we've >> pretty much ended up at th

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-06-02 Thread Gustavo Narea
On Jun 2, 9:26 am, Reinout van Rees wrote: > On 05/29/2010 01:51 AM, Gustavo Narea wrote: > > Basically, when you need to integrate a piece of WSGI middleware that > > must be present both on development and deployment, you have to get > > rid of `manage runserver' and use a development server lik

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-06-02 Thread Reinout van Rees
On 05/29/2010 01:51 AM, Gustavo Narea wrote: Basically, when you need to integrate a piece of WSGI middleware that must be present both on development and deployment, you have to get rid of `manage runserver' and use a development server like the one from Paste or CherryPy. Middleware that *mu

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-05-29 Thread Gustavo Narea
t; be using the Django stack to serve media -- you should be using a > lightweight web server that has high throughput for handles files. > This is something that is clearly documented in Django's own docs. Fair enough. > We're aware that we haven't been the most r

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-05-29 Thread Gustavo Narea
OMG, I didn't realize that the very long email I wrote last night was trimmed by Google Groups. Let me take a deep breath and write it again... :'( On May 29, 12:51 am, Gustavo Narea wrote: > Hello, > > On May 28, 6:13 pm, Russell Keith-Magee > wrote: > > > This is all very helpful information

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-05-28 Thread Gustavo Narea
Hello, On May 28, 6:13 pm, Russell Keith-Magee wrote: > This is all very helpful information; thanks for breaking it down like this. > > I've talked this over with a few people at the sprints, and we've > pretty much ended up at the same point -- we're deeply confused. > Comments inline below. T

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-05-28 Thread Russell Keith-Magee
On Thu, May 27, 2010 at 5:08 PM, Gustavo Narea wrote: > Hello, > > On May 26, 4:52 pm, Ivan Sagalaev wrote: >> Could you please give a concise technical overview, in high-level terms, >> on what twod.wsgi actually does to Django code? > > Sure. There are different components, so I'll elaborate on

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-05-27 Thread Gustavo Narea
Sorry, I forgot to link to the embedded application docs: http://packages.python.org/twod.wsgi/manual/embedded-apps.html On May 27, 10:08 am, Gustavo Narea wrote: > Hello, > > On May 26, 4:52 pm, Ivan Sagalaev wrote: > > > Could you please give a concise technical overview, in high-level terms,

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-05-27 Thread Gustavo Narea
Hello, On May 26, 4:52 pm, Ivan Sagalaev wrote: > Could you please give a concise technical overview, in high-level terms, > on what twod.wsgi actually does to Django code? Sure. There are different components, so I'll elaborate on them individually: Paste Deploy application factory instead of

Re: Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-05-26 Thread Ivan Sagalaev
On 05/26/2010 03:02 PM, Gustavo Narea wrote: Among many other things, one of the components alone provides solutions to some enterprise requirements for Django: * It’s now possible to run code at startup

Proposal: First-class WSGI support in Django 1.3 / twod.wsgi

2010-05-26 Thread Gustavo Narea
Hello, everyone. I'd like Django's WSGI support to be as good as in the other WSGI frameworks (or better). With this in mind, I have developed a project called twod.wsgi [1] which brings full WSGI capabilities to Django, whether running in development or deployment. This project is fully teste

Re: WSGI support in Django

2010-01-06 Thread Evert Carton
, 5 January, 2010 0:44:57 Subject: Re: WSGI support in Django On Mon, Jan 4, 2010 at 11:46 PM, Gustavo Narea wrote: > Hi, > > One more update about the WSGI related improvements for Django: > > I have created a Mercurial branch to keep track of these changes and > keep them sync

Re: WSGI support in Django

2010-01-04 Thread Russell Keith-Magee
On Mon, Jan 4, 2010 at 11:46 PM, Gustavo Narea wrote: > Hi, > > One more update about the WSGI related improvements for Django: > > I have created a Mercurial branch to keep track of these changes and > keep them synchronized with trunk: > http://bitbucket.org/Gustavo/django-wsgi/ > > Even though

Re: WSGI support in Django

2010-01-04 Thread Gustavo Narea
; On Tue, Oct 27, 2009 at 10:49 PM, Gustavo Narea > wrote: > > > > Hi there. > > > > Over the last week I've been working to improve WSGI support in Django > > and I have sent a few patches which have not received the feedback I > > expected to have, s

Re: WSGI support in Django

2009-10-28 Thread Gustavo Narea
it helps, I could also write documentation for the above and send you > another patch. > > Please let me know what you think, > > - Gustavo. > > > On Wed, 2009-10-28 at 08:24 +0800, Russell Keith-Magee wrote: > > On Tue, Oct 27, 2009 at 10:49 PM, Gustavo Narea >

Re: WSGI support in Django

2009-10-28 Thread Gustavo Narea
at you think, - Gustavo. On Wed, 2009-10-28 at 08:24 +0800, Russell Keith-Magee wrote: > On Tue, Oct 27, 2009 at 10:49 PM, Gustavo Narea > wrote: > > > > Hi there. > > > > Over the last week I've been working to improve WSGI support in Django > > and

Re: WSGI support in Django

2009-10-27 Thread Russell Keith-Magee
On Tue, Oct 27, 2009 at 10:49 PM, Gustavo Narea wrote: > > Hi there. > > Over the last week I've been working to improve WSGI support in Django > and I have sent a few patches which have not received the feedback I > expected to have, so I wanted to ping you. ;-) I

WSGI support in Django

2009-10-27 Thread Gustavo Narea
Hi there. Over the last week I've been working to improve WSGI support in Django and I have sent a few patches which have not received the feedback I expected to have, so I wanted to ping you. ;-) To be precise, with those patches Django applications would be able to: 1.- [Ticket 8927