Hello Ivan,

thanks for your fast response!

On Sat, Aug 26, 2006 at 01:19:20PM +0400, Ivan Sagalaev wrote:
> > Can I have Django accessible at /, and other content still accessible
> > under other directories?
> 
> Yes. You should Directories describing '/debian/' _after_ your 
> '<Location />' for this general rule not overwrite more specific ones. 
> Also you may have to convert your <Directories> to <Locations>

Hmm, I've converted <Directory /mnt/sda1/ibr/debian> to <Location
/debian> and put it after <Location />:

        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>

        <Location />
                SetHandler python-program
                ...
        </Location>

        Alias /debian /mnt/sda1/ibr/debian
        <Location /debian>
                Options Indexes FollowSymLinks
                Order allow,deny
                Allow from all
        </Location>

<Location /debian> works if I comment out <Location />. If not, I get
the following response:

<pre>
Mod_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 301, in 
HandlerDispatch
    assert (type(result) == type(int())), \

AssertionError: Handler 'django.core.handlers.modpython' returned invalid 
return code.

</pre>

What is wrong here?

With kind regards,
Baurzhan.

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