Hi,

Thank you for your answer

Here's my httpd.conf

<Location "/django-application/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE settings
    PythonOption django.root /django-application
    PythonDebug On
    PythonPath "['/root/xvorcak_dir/django/mysite/'] + sys.path"
</Location>

and here's part of my urls.py

   (r'^$', 'tasks.views.index'),
    # task CRUD
    (r'^tasks/new', 'tasks.views.new'),
    (r'^tasks/add', 'tasks.views.add'),



    (r'^submittions$', 'tasks.views.submittions'),
    (r'^mytasks', 'tasks.views.mytasks'),

    (r'^accounts/login/$', 'django.contrib.auth.views.login',
{'template_name': 'login.html'}),

Thank you so much

On Apr 20, 4:26 am, Jacob Kaplan-Moss <ja...@jacobian.org> wrote:
> 2011/4/19 Ján Vorčák <vorcak....@gmail.com>:
>
> > I've installed a django on my server (running on apache), but I've
> > configured it to run using url like
> >www.mydomain.com/django-application/
>
> > Now when I access some url from django using absolute url it
> > automatically redirects me to
> >www.mydomain.com/someapplication
> > instead of
> >www.mydomain.com/django-application/someapplication
>
> This sounds like a problem I've seen when using Django under
> mod_python -- are you using mod_python?
>
> Either way, can you share your Apache config and the relevent
> URLconfs? It's hard to figure out what's wrong without all the
> details.
>
> Jacob

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to