It's this line: PythonOption django.root /var/www/project
Change that to / or anything else and you should be all set. On Wednesday, June 19, 2013 10:32:12 AM UTC-4, Jiří Kupka wrote: > > 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.

