A new WSGI-server?

6 views
Skip to first unread message

MrMuffin

unread,
Aug 8, 2005, 4:04:06 AM8/8/05
to Django developers
I've been looking at Django the last few days and think about migrating
my current project from CherryPy. But I don't want to rely on
Apache/mod_python, but a pure python WSGI-server, even for production
environment. My sites wont have huge amount of traffic either. The one
included in Django is aimed at development/testing only according to
the Django docs. CherryPy has one written by Peter Hunt that's
framework agnostic and better performance-wise ( I'm told ) than the
one in wsgiref.

Could Django use the WSGI-server instead? Has anybody here tried it ?

Thomas

Moof

unread,
Aug 8, 2005, 4:54:43 AM8/8/05
to django-d...@googlegroups.com
MrMuffin wrote:

> Could Django use the WSGI-server instead? Has anybody here tried it ?

Django *should* be able to plug into any WSGI-compliant server or CGI
adaptor. I know there was discussion recently about how to get it working
with lighthttpd and fcgi, for example.

If you want another high-performance WSGI-compliant pure python web server,
you could do worse thna to look at Twisted, <http://twisedmatrix.com/>
though I don't know if anyone has tried adapting django to work with it.
You'll find the people in #twisted.web on freenode quite helpful when it
comes to working out how to set it up though.

*ponders*

Does anyone know if Zope is, as yet, capable of acting as a WSGI server?

If you come into difficulties due to the WSGI-compliance part, then I
suggest asking on here, or filing a bug. The code is over in
django.core.handlers.wsgi

Moof
--
Giles Antonio Radford, alias Moof
"Too old to be a chicken and too young to be a dirty old man"
Serving up my ego over at <http://metamoof.net/>

Moof

unread,
Aug 8, 2005, 4:58:42 AM8/8/05
to django-d...@googlegroups.com
Moof wrote:
> If you want another high-performance WSGI-compliant pure python web server,
> you could do worse thna to look at Twisted, <http://twisedmatrix.com/>
> though I don't know if anyone has tried adapting django to work with it.

It appears that someone has:

http://code.djangoproject.com/ticket/172

Carlo C8E Miron

unread,
Aug 8, 2005, 6:41:08 AM8/8/05
to django-d...@googlegroups.com
Hi Moof

2005/8/8, Moof <mo...@metamoof.net>:
[snip]
> *ponders*
>
> Does anyone know if Zope is, as yet, capable of acting as a WSGI server?

Zope, at least in his 3.x incarnation, is going to abandon the Medusa based
server in favor of Twisted web 2 (thru WSGI). This change is actually planned
to land in Zope 3.2, due on december 2005.

HAND,
(c)

>
> Moof
> --
> Giles Antonio Radford, alias Moof
> "Too old to be a chicken and too young to be a dirty old man"
> Serving up my ego over at <http://metamoof.net/>
>


--
Carlo C8E Miron, ICQ #26429731
--
Disclaimer:
If I receive a message from you, you are agreeing that:
1. I am by definition, "the intended recipient".
2. All information in the email is mine to do with as I see fit and
make such financial profit, political mileage, or good joke as it
lends itself to. In particular, I may quote it on USENET or the WWW.
3. I may take the contents as representing the views of your company.
4. This overrides any disclaimer or statement of confidentiality that
may be included on your message.
Reply all
Reply to author
Forward
0 new messages