Hi all,

I have a weird problem hitting the methods matched through urls.py.
My setup works through when I just set it up manually using

python manage.py runserver 0.0.0.0:8000 etc, but not when using apache

The path to the the application
is /home/dradmin/wwwroot/php/drmu/sommerspil

I have verified that I hit the correct directory by going to
http://.../sommerspil/ with a browser. However it tells me that
http://.../sommerspil/login/ does not exist, (and it doesn't, since
login is a script under sommerspil/spil/login, etc). Again, using
runserver the request is correctly handled with django, but when using
apache.

My urls.py file look like:

from sommerspil.spil.views import *

urlpatterns = patterns('',

(r'^/php/drmu/sommerspil/',include('normal.root.urls')),
                       (r'^register/', register),
                       (r'^setupdatabase/', setupDatabase),
                       (r'^login/',  loginUser),
                       (r'^setroute/$',  setRoute),
                       (r'^updatetonextday/$',  updateToNextDay),
                       (r'^(?P<path>.*)$',
'django.views.static.serve',
{'document_root': '/home/dradmin/wwwroot/'}),
)


I have also added sommerspil.spil to the list of applications in
settings.py

the setup in the apache configuration looks like

 <Location "/php/drmu/sommerspil">
                SetHandler python-program
                PythonPath "sys.path +
['/home/dradmin/wwwroot/php/drmu']"
                PythonHandler django.core.handlers.modpython
                SetEnv DJANGO_SETTINGS_MODULE sommerspil.settings
                PythonDebug On
</Location>

Please, is there anyone who can me a hint to what I am doing wrong? I
have a sneaking feeling, that it is just a little mistake somewhere,
that I have to figure out.

Cheers,
Gorm

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to