Using django only for request handling work

0 views
Skip to first unread message

Amit Sethi

unread,
Dec 27, 2009, 3:58:21 PM12/27/09
to django-users
Hi ,I have a project that is in general written to work with wsgi server except i wish to alter some of the environ variables provided to the app. So I have a function:

def __call__(self, environ, start_response):   In this I want to change some part of environ ....

So my application looks something like this


apache server --->> django to do url handling and changing environ  --->>  the actual app 

This is my initial brainstorm . I really don't understand if it is possible to do this . How do I create the same kind of interface like apache or any other server i.e environ and start_response to be sent to the app???

--
A-M-I-T S|S

Victor Lima

unread,
Dec 27, 2009, 4:59:11 PM12/27/09
to django...@googlegroups.com, django-users
Restful API?

Att,
Victor Lima

Em 27/12/2009, às 18:58, Amit Sethi <amit.pu...@gmail.com>
escreveu:

> --
>
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to django-users...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en
> .

Daniel Roseman

unread,
Dec 27, 2009, 5:58:21 PM12/27/09
to Django users

Doesn't sound like Django is the best fit for you here, since you
won't be taking advantage of any of the things it does well (ORM,
admin interface, templating, etc). If you just want a Python-based URL
dispatcher, you could try Routes[1], which is used in Pylons but is a
standalone project. Or some of the functionality in Paster/WebOb[2]
might be what you want, since they work closely with the WSGI
interface.

[1]: http://routes.groovie.org/
[2]: http://pythonpaste.org/

--
DR.

Reply all
Reply to author
Forward
0 new messages