On 8/20/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote:
> Have you read the mod_python documentation on Django site? It gives an
> example, which modified for your case would be:
>
> <Location "/wssmedia">
> SetHandler None
> </Location>
>
> The important bit is the SetHandler directive. Have you done that?
Yes, I did. Setting handler to default-handler has the same effect as
setting it to None. I tried both values.
> Post what your Apache configuration snippet for setting up Django
> looks like.
SOLVED. My friend has localized a problem: The reason was
misinterpretation of Apache's manual sentence: "<location> directives
are processed in the order they appear in the configuration file"
It does not mean I should put a <location "/wssmedia"> *before*
mod_python's <location>, but *behind* it, because first, "/" locations
is evaluated as matched, next the "/wssmedia" is matched and
overrides first one.
Hence the working httpd.conf snippet looks like:
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE bizweb.server_settings
PythonDebug On
PythonPath "[r'C:\\.WKS-PF\\PRJ\\ECLIPSE\\Django\\src'] + sys.path"
</Location>
<Location "/wssmedia">
SetHandler default-handler
</Location>
Thank you for your help and I hope this off-topic thread would be
usefull for somebody else who meets the similiar problems on Apache
side.
Peter
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---