Установка из исходников¶
Please follow the installation instructions for your system first:
Grab the latest Weblate sources using Git (or download a tarball and unpack that):
git clone https://github.com/WeblateOrg/weblate.git weblate-src
Alternatively you can use released archives. You can download them from our website <https://weblate.org/>. Those downloads are cryptographically signed, please see Проверка подписей выпусков.
Install current Weblate code into the virtualenv:
. ~/weblate-env/bin/activate pip install -e weblate-src
Copy
weblate/settings_example.py
toweblate/settings.py
.По своему усмотрению подкорректируйте значения в новом файле
settings.py
. Для тестирования вы можете использовать поставляемый пример, но для рабочей среды вы захотите внести в него изменения, смотрите раздел Настройка конфигурации.Create the database used by Weblate, see Настройка базы данных для Weblate.
Build Django tables, static files and initial data (see Наполнение базы данных and Обслуживание статических файлов):
weblate migrate weblate collectstatic weblate compress weblate compilemessages
Примечание
This step should be repeated whenever you update the repository.