Hello all:
I am trying to deploy a test application with Apache 2.0.59 and
mod_python 3.3.1. I am also using Django 0.97-pre (development
version). The project has a single cistom application and it is listed
in INSTALLED_APPS in settings.py. Also, I have a urls.py file within
the subapplication and the main urls.py file imports it. Everything
works fine except that whenever I try to access a URL that is parsed
by the urls.py file within the subapplication, I get debug error page
saying that "subapplication.views could not be imported Error was no
module named subapplication.views".
The <Location> section in httpd.conf has the line:
PythonPath "['/path/to/project'] + sys.path"
If I change it to:
PythonPath "['/path/to/project', '/path/to/project/
<em>subapplication</em>'] + sys.path"
then everything works. But I think only the path to the project should
be needed.
Any ideas as to what is wrong?
Thanks,
Juampa
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---