1activate_this = '/path/to/env/bin/activate_this.py'
2with open(activate_this) as file_:
3 exec(file_.read(), dict(__file__=activate_this))
4
1<VirtualHost *>
2 ServerName example.com
3 WSGIScriptAlias / C:\yourdir\yourapp.wsgi
4 <Directory C:\yourdir>
5 Order deny,allow
6 Allow from all
7 </Directory>
8</VirtualHost>
9