Hi! I have little trouble with reverse function in my project. When I run 
it over ./manage runserver, everything is fine - reverse gives me url in 
/page/xx format. When I run my project over apache2 using this conf file:

Listen 8001

<VirtualHost *:8001>
        ServerName project.tld
        DocumentRoot "/var/www/project"
        ErrorLog /var/www/project/error.log
        CustomLog /var/www/project/access.log combined
        <Directory "/var/www/project/">
                SetHandler python-program
                PythonHandler django.core.handlers.modpython
                SetEnv DJANGO_SETTINGS_MODULE settings
                PythonOption django.root /var/www/project
                PythonDebug Off
                PythonPath 
"['/var/www/','/var/www/project','/usr/local/lib/site-packages/django'] + 
sys.path"
        </Directory>
</VirtualHost>

reverse gives me url in /var/www/project/page/xxx format -> 
http://project.tld/var/www/project/page/xxx. What is interesting, I can 
open http://project.tld/page/xxx and 
http://project.tld/var/www/project/page/xxx and I get same results, but 
reverese function returns "ugly" full path...

Any suggestions, how can I fix it?

Thanks,
Jirka

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to