Hi , I have been trying to make a project work with mod_wsgi under
apache . The project is not exactly in django . It has a development
server of its own for adapting I was using this as a reference .The
mod_wsgi manual says that you have to send the response in following
manner

def application(environ, start_response):
    status = '200 OK'
    output = 'Hello World!'

    response_headers = [('Content-type', 'text/plain'),
                        ('Content-Length', str(len(output)))]
    start_response(status, response_headers)

    return [output]

Now this is fine it you have one file to serve but i need to serve
multiple files a sample call on the development server is :

localhost - - [19/Nov/2009 16:29:16] "GET /_static/basic.css HTTP/1.1" 200 6385
public/_static/jquery.js
localhost - - [19/Nov/2009 16:29:16] "GET /_static/jquery.js HTTP/1.1" 200 55774
public/_static/doctools.js
localhost - - [19/Nov/2009 16:29:16] "GET /_static/doctools.js
HTTP/1.1" 200 6618
public/_static/jquery.form.js
localhost - - [19/Nov/2009 16:29:16] "GET /_static/jquery.form.js
HTTP/1.1" 200 23288
public/_static/comments.js
localhost - - [19/Nov/2009 16:29:16] "GET /_static/comments.js
HTTP/1.1" 200 20337
localhost - - [19/Nov/2009 16:29:16] "HEAD
/comments/803b4d0984c5317e5800109ec12bb439 HTTP/1.1" 200 0
localhost - - [19/Nov/2009 16:29:16] "HEAD
/fixes/803b4d0984c5317e5800109ec12bb439 HTTP/1.1" 404 0
localhost - - [19/Nov/2009 16:29:16] "GET
/comments/803b4d0984c5317e5800109ec12bb439?id=803b4d0984c5317e5800109ec12bb439
HTTP/1.1" 200 464

How do I create a script that can serve all these files ?  I am sure
django has a way in which it does the same thing what is it. Any
reference to code i should look at?



-- 
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=.


Reply via email to