How to Install Pootle on Debian Latest
In this tutorial, we will guide you on how to install Pootle, a free open-source web-based translation management system on Debian Latest.
Prerequisites
Before starting, make sure that you have the following:
- Debian system with root or sudo access
- Node.js
- Python 2.7 or Python 3.4+
- Postgres SQL
- Redis
Installation
Update your Debian system
sudo apt update sudo apt upgradeInstall Required Packages
sudo apt-get install -y postgresql postgresql-contrib redis-server git gettext patch \ python-virtualenv python-setuptools libpq-dev libxml2 libxml2-dev libxslt-dev libffi-dev \ libjpeg-dev libcairo2-dev libpango1.0-devCreate a postgresql user and database
sudo -i -u postgres createuser -d <username> createdb -O <username> pootledb exitInstall Node.js
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - sudo apt-get install -y nodejsInstall Pootle using Git
git clone https://github.com/translate/pootle.gitCreate a Virtual Environment
virtualenv env source env/bin/activate pip install -r requirements/dev.txtConfigure Pootle
cp pootle/settings/local_template.py pootle/settings/local.pyEdit the
local.pyfile with the following settings:DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'pootledb', 'USER': '<username>', 'PASSWORD': '<password>', 'HOST': 'localhost', 'PORT': '', } } BROKER_URL = 'redis://localhost:6379/0' DEBUG = TrueReplace
<username>and<password>with your database user and password.Run Database Migrations
cd pootle ./manage.py migrateCreate a Django Superuser
./manage.py createsuperuserStart the development server
./manage.py runserver
- Access Pootle
Open your browser and go to http://localhost:8000
You will be prompted to log in. Enter the Django Superuser username and password for login.
Congratulations! You have successfully installed Pootle on Debian Latest.