# Установлення з початкового коду

1. Будь ласка, для встановлення Weblate спочатку виконайте настанови зі встановлення для вашої системи:
   * [Установлення на Debian і Ubuntu](https://docs.weblate.org/uk/weblate-2026.10/admin/install/venv-debian.md)
   * [Установлення у SUSE та openSUSE](https://docs.weblate.org/uk/weblate-2026.10/admin/install/venv-suse.md)
   * [Установлення у RedHat, Fedora і CentOS](https://docs.weblate.org/uk/weblate-2026.10/admin/install/venv-redhat.md)
2. Отримайте найсвіжіший код Weblate за допомогою Git (або отримайте архів з кодом і розпакуйте його):
   ```sh
   git clone https://github.com/WeblateOrg/weblate.git weblate-src
   ```

   Крім того, ви можете скористатися архівами випущених версій. Ви можете отримати їх з нашого сайта <[https://weblate.org/](https://weblate.org/)>. Ці архіви є криптографічно підписаними. Див. [Verifying release artifacts](https://docs.weblate.org/uk/weblate-2026.10/security/release-artifacts.md#verify).
3. Встановіть актуальну версію коду Weblate у середовищі Python:
   ```sh
   . ~/weblate-env/bin/activate
   uv pip install -e 'weblate-src[all]'
   ```

   If you intend to run the testsuite from the source checkout, install the
   development dependencies as described in [Локальне тестування Weblate](https://docs.weblate.org/uk/weblate-2026.10/contributing/tests.md#local-tests).
4. Скопіюйте `weblate/settings_example.py` до `weblate/settings.py`.
5. Скоригуйте значення у новому файлі `settings.py` відповідно до ваших уподобань. Вам доведеться надати принаймні реєстраційні дані для доступу до бази даних та закритий ключ Django, а також вам варто внести додаткові зміни для вашої промислової конфігурації, див. [Коригування налаштувань](https://docs.weblate.org/uk/weblate-2026.10/admin/install.md#configuration).
6. Створіть базу даних, яка використовуватиметься Weblate, див. [Налаштування бази даних для Weblate](https://docs.weblate.org/uk/weblate-2026.10/admin/install.md#database-setup).
7. Побудуйте таблиці Django, статичні файли та початкові дані (див. [Заповнення бази даних](https://docs.weblate.org/uk/weblate-2026.10/admin/install.md#tables-setup) і [Обслуговування статичних файлів](https://docs.weblate.org/uk/weblate-2026.10/admin/install.md#static-files)):
   ```sh
   weblate migrate
   weblate collectstatic
   ```

   #### NOTE
   Цей крок слід повторювати кожного разу, коли ви оновлюватимете сховище.

<a id="distribution-packaging"></a>

## Packaging Weblate for distributions

The dependency versions in `pyproject.toml` describe the runtime
environment tested by the Weblate project. They are intentionally strict for
installs from PyPI and for the Weblate release process, because Weblate cannot
validate every dependency-version combination covered by wider version ranges.

Distribution packages can replace those Python packages with versions from the
distribution package set. When doing so, run Weblate’s test suite against the
packaged dependency set and treat passing tests as the compatibility signal for
the distribution package.

Keep Weblate’s tightly coupled companion packages in sync with the Weblate
release:

* [weblate-fonts](https://pypi.org/project/weblate-fonts/)
* [weblate_schemas](https://pypi.org/project/weblate_schemas/)
* [weblate-language-data](https://pypi.org/project/weblate-language-data/)
* [translation-finder](https://pypi.org/project/translation-finder/)
* [translate-toolkit](https://pypi.org/project/translate-toolkit/)

Mismatched versions of these packages are more likely to break at runtime or
during tests than other Python dependency substitutions.

#### SEE ALSO
See [Локальне тестування Weblate](https://docs.weblate.org/uk/weblate-2026.10/contributing/tests.md#local-tests) for test setup and [Цикл випуску](https://docs.weblate.org/uk/weblate-2026.10/security/releases.md#release-cycle) for Weblate’s
release cadence.
