On Sat, 2007-04-28 at 15:22 +0000, omat * gezgin.com wrote: > Because request.META['PATH_INFO'] is only available when running the > test server. > > This is also a point of inconvenience and I think the test server > should be made more compatible with apache.
Apache is not the only web server in the world, so it is a good thing that we don't behave like an Apache clone. It forces you not to rely on peculiarities of one particular implementation. Also, remember that you are interacting with mod_python, rather than Apache itself, so there is a layer between you and the webserver proper that you will also have to look at the documentation for. On the Django side, have a look in django/core/handlers/ at modpython.py and wsgi.py and you'll see how we populate the META variable in both cases. As you can see there, a lot of the information, including the two variables you are interested in, we simply copy directly from the information provided by the server -- be it a WSGI-compatible implementation or modpython. After familiarising yourself with that code, you can then look further into why you are not receiving the information you are after from the web server in whichever setup you prefer. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---