What i am going to suggest is totally orthogonal to your requirement as i am not helping you with apace+mod_wsgi. Though this generally works, but i think you should consider nginx if you are thinking about new deployments or learning this skill.
And the reasons why i suggest nginx? Well.. 1. extremely simple config file 2. my experiments showed me darn low cpu and memory consumption patterns. ...and many more that you will find on a quick web-search for 'nginx vs apache'; but these were the primary motivators for me. Also, i see nginx+uwsgi sits pretty well and is pretty easy to manage. I also hear good things about gunicorn and it looks simple too. But i like some of the features of uwsgi(like spooler) which makes me tilt towards it. -V On Sun, May 12, 2013 at 3:47 PM, Stanley Agba <[email protected]>wrote: > Hello guys, > please I'm kind of a noob at django and I'm trying to deploy a django site > on Apache with mod_wsgi, I am not using a virtualenv as the server has > python installed. > I added the following to my /etc/apache2/apache2.conf > > <VirtualHost example:80> > ServerName example > ServerAlias example > ServerAdmin [email protected] > > DocumentRoot /var/www/example/static > WSGIScriptAlias / /var/www/example/example/wsgi.py > WSGIPythonPath /var/www/example > <Directory /var/www/example/example> > <Files wsgi.py> > Order allow,deny > Allow from all > </Files> > </Directory> > > Alias /head.jpg /var/www/example/static/head.jpg > Alias /media/ /var/www/example/uploads > Alias /static /var/www/example/static > > <Directory /var/www/example/static> > Order deny,allow > Allow from all > </Directory> > > <Directory /var/www/example/uploads> > Order deny,allow > Allow from all > </Directory> > > ErrorLog /var/www/python_ng/logs/error.log > CustomLog /var/www/python_ng/logs/access.log combined > </VirtualHost> > > I got a 'WSGIPythonPath cannot be in virtual host section' error. > I have searched for previous topics but i have not been able to get a > solution, I would greatly appreciate any help. > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.

