Hi,

The project I'm working on works just fine running the dev webserver,
however trying to get it working under apache + mod_python is proving
to be a bit frustrating. I'm using the 0.96 of Django + apache 2.2 +
mod_python 3.3.1 - I'm also running MacOS X 10.5 (Leopard)

I went back to basics and created a sample project 'moose' using
'django-admin.py startproject moose'. I edited my httpd.conf file and
added ->

<Location "/moose/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE settings
    PythonDebug On
    PythonPath "['/Users/rudolph/Sites/moose'] + sys.path"
</Location>

I added a symbolic link in my /Library/WebServer/Documents that points
to '/Users/rudolph/Sites/moose'.  If I restart apache and navigate to
'http://localhost/moose/' I do get a nicely formatted Django error
page (this is further than I get for my real Django project).

The error I get is:

ImportError at /moose/
No module named moose.urls

Request Method: GET
Request URL:    http://localhost/moose/
Exception Type: ImportError
Exception Value:        No module named moose.urls
Exception Location:     /Library/Python/2.5/site-packages/django/core/
urlresolvers.py in _get_urlconf_module, line 177

Anyone have any ideas/suggestions?

Thanks,
Chris.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to