Sincere thanks to both Malcom and Waylan. Things are working fine now.
Waylan's suggestion didn't have an effect, but after following
Malcom's
debugging advice I found that while I had remembered to create a link
from
the httpd DocumentRoot to the project1 directory, I had not created
a link to the project2 directory.

For other newbies who might be trying to set things up this way,
here is the full combination of httpd, directory structure and
settings.py
information that is working for me.

Thanks again for the help.
-DG

----------------------------
httpd.conf (relevant parts)
----------------------------

[...]

DocumentRoot "/usr/local/www/data"

[...]

LoadModule python_module /usr/local/libexec/apache2/mod_python.so

<VirtualHost _default_:443>

  ServerName projects.mycompany.com
  SetHandler python-program
  PythonInterpPerDirective On

  # Turn Off for production, On for dev:
  PythonAutoReload Off
  PythonDebug Off

  <Location "/project1">
      PythonHandler django.core.handlers.modpython
      PythonPath "['/usr/local/projects', \
                   '/usr/local/projects/project2']+sys.path"
      SetEnv DJANGO_SETTINGS_MODULE project2.settings
  </Location>

  <Location "/project2">
      PythonHandler django.core.handlers.modpython
      PythonPath "['/usr/local/projects', \
                   '/usr/local/projects/project1']+sys.path"
      SetEnv DJANGO_SETTINGS_MODULE project1.settings
  </Location>

  <LocationMatch "\.(jpg|gif|png|css|js)$">
      SetHandler None
  </LocationMatch>

  [... SSL stuff ...]

</VirtualHost>

-------------------
directory structure
-------------------

/usr/local/www/data/
   project1 (link to /usr/local/projects/project1)
   project2 (link to /usr/local/projects/project2)

/usr/local/projects/
   project1/
      settings.py
      urls.py
      views.py
      static/
         css/
         img/
         admin (link to .../django/contrib/admin/media/)
   project2/
      settings.py
      urls.py
      views.py
      static/
         css/
         img/
         admin (link to .../django/contrib/admin/media/)

-----------------------------------------------------------
excerpt from settings.py (shown for project1; project2 is similar)
-----------------------------------------------------------

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = '/usr/local/projects/project1/static'

# URL that handles the media served from MEDIA_ROOT.
# Example: "http://media.lawrence.com";
MEDIA_URL = 'https://projects.mycompany.com/project1/static'

# URL prefix for admin media -- CSS, JavaScript and images. Make sure
to use a
# trailing slash.
# Examples: "http://foo.com/media/";, "/media/".
ADMIN_MEDIA_PREFIX = 'https://projects.mycompany.com/project1/static/
admin/'



--~--~---------~--~----~------------~-------~--~----~
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