-
-
Save fwenzel/cb33a48c6945db24f13a to your computer and use it in GitHub Desktop.
Some files for running a Pootle production instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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