1. Matthew Schinckel
  2. django-deploy

Source

django-deploy / deploy / templates / deploy / apache_conf / mod_python.conf

<VirtualHost *:{{ port }}>
    ServerName {{ servername }}
    {% if ssl_cert %}
    SSLEngine on
    SSLCertificateFile {{ ssl_cert }}
    {% endif %}
    
    <Location "/" >
        PythonPath "['{{ installpath }}/{{ project }}'] + sys.path"
        SetHandler mod_python
        PythonHandler index
        {% if ssl_cert %}
        SSLRequireSSL
        {% endif %}
    </Location>
    
    ErrorLog "/var/log/apache2/{{ project }}-error.log"
    
</VirtualHost>