Re: Using django only for request handling work

2009-12-27 Thread Daniel Roseman
On Dec 27, 8:58 pm, Amit Sethi  wrote:
> 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

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.

--

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




Re: Using django only for request handling work

2009-12-27 Thread Victor Lima
Restful API?

Att,
Victor Lima

Em 27/12/2009, às 18:58, Amit Sethi   
escreveu:

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

--

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




Using django only for request handling work

2009-12-27 Thread Amit Sethi
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

--

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