On Thu, 2006-07-06 at 15:02 +0000, Enrico wrote:
> Hi,
> 
> I'm using apache and mod_python on Windows. Here's my config on
> httpd.conf:
> 
> <Location "/">
>       SetHandler python-program
>       PythonPath "['C:/apache2triad/django/projects'] + sys.path"
>       PythonHandler django.core.handlers.modpython
>       SetEnv DJANGO_SETTINGS_MODULE rico.settings
>       PythonDebug On
>       # Development only
>       PythonAutoReload On
> </Location>
> 
> # To make CSS available in admin
> Alias /media C:\apache2triad\django\src\django\contrib\admin\media

Since everything under "/" (including "/media" and "/fred" and
"/everything-else") is already caught by the above <Location> block,
your alias here will not be used at all.

If you are going to make "/" be passed off to Django, then you
need /admin to be handled as a redirect or some other way (e.g. in
another virtual server/domain name).

Personally, I would just put you Django stuff under /foo, rather than /,
and then you have other names available for other config (e.g. /admin).

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to