Skip to content

Instantly share code, notes, and snippets.

@fwenzel fwenzel/apache-host.conf Secret
Created Nov 3, 2009

Embed
What would you like to do?
Some files for running a Pootle production instance
<VirtualHost *:80>
ServerName verbatim.example.org:80
DocumentRoot "/pootle_dir/Pootle"
#SSLEngine On
<Location "/">
SetHandler python-program
PythonHandler modpython_wrapper
SetEnv DJANGO_SETTINGS_MODULE pootle.settings
#PythonOption django.root /pootle ## only if not deployed at /
PythonPath "['/pootle_dir/pootle_env/bin', '/pootle_dir/Pootle', '/pootle_dir/Pootle/local_apps', '/pootle_dir/Pootle/external_apps'] + sys.path"
PythonInterpreter pootle
#PythonDebug On
</Location>
<Location "/html">
SetHandler None
</Location>
<Directory /pootle_dir/Pootle/html>
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
#!/usr/bin/env python
import os.path
activate_this = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'activate_this.py')
execfile(activate_this, dict(__file__=activate_this))
from django.core.handlers.modpython import handler
Django==1.1.1
MySQL-python
python-ldap
pysqlite
lxml==2.2.3
translate-toolkit==1.4.1-svn
-f http://translate.sourceforge.net/snapshots/Pootle-1.3.0-beta4/translate-toolkit-1.4.1-svn.tar.bz2
python-Levenshtein==0.10.1
-f http://downloads.sourceforge.net/project/translate/python-Levenshtein/0.10.1/python-Levenshtein-0.10.1.tar.bz2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.