I'm getting trouble setting Django with Apache on Macosx Lion (10.7.2). I produced a Django project according to the tutorial and may run it around the development server. Now I wish to run it in your area on my small Mac with Apache. I produced the 2 files indicated below.
WSGIDaemonProcess django WSGIProcessGroup django Alias /site_media/ "/Users/David/Dropbox/sites/walble/media/" <Directory "/Users/David/Dropbox/sites/walble/media"> Order allow,deny Options Indexes Allow from all IndexOptions FancyIndexing </Directory> Alias /media/ "/Library/Python/2.7/site-packages/django/contrib/admin/media/" <Directory "/Library/Python/2.7/site-packages/django/contrib/admin/media"> Order allow,deny Options Indexes Allow from all IndexOptions FancyIndexing </Directory> WSGIScriptAlias /walble "/Users/David/Dropbox/sites/walble/apache/walble.wsgi" <Directory "/Users/David/Dropbox/sites/walble/apache"> Allow from all </Directory>
import os import sys sys.path.append('/Users/David/Dropbox/sites/walble') sys.path.append('/Users/David/Dropbox/sites') os.environ['DJANGO_SETTINGS_MODULE'] = 'walble.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()
httpd.conf, I enabled
LoadModule wsgi_module libexec/apache2/mod_wsgi.so after which added the next line.
I restarted Apache after which within the browser I entered
http://localhost/walble however i obtain a forbidden message like so
Forbidden You don't have permission to access /walble on this server. Apache/2.2.20 (Unix) DAV/2 mod_wsgi/3.3 Python/2.7.1 PHP/5.3.6 with Suhosin-Patch Server at localhost Port 80
Any suggestions on which I would do wrong?
This can be a common permissions problem. The Apache user doesn't have execute permissions around the