mirror of
https://github.com/WeblateOrg/weblate.git
synced 2026-08-01 13:20:10 +08:00
- consistently use uv to install and test - avoid legacy naming for pytest - remove some outdated ignores
49 lines
1.4 KiB
ReStructuredText
Vendored
49 lines
1.4 KiB
ReStructuredText
Vendored
Installing from sources
|
|
=======================
|
|
|
|
#. Please follow the installation instructions for your system first up to installing Weblate:
|
|
|
|
* :doc:`venv-debian`
|
|
* :doc:`venv-suse`
|
|
* :doc:`venv-redhat`
|
|
|
|
|
|
#. Grab the latest Weblate sources using Git (or download a tarball and unpack that):
|
|
|
|
.. code-block:: sh
|
|
|
|
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 :ref:`verify`.
|
|
|
|
#. Install current Weblate code into the Python environment:
|
|
|
|
.. code-block:: 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 :ref:`local-tests`.
|
|
|
|
#. Copy :file:`weblate/settings_example.py` to :file:`weblate/settings.py`.
|
|
|
|
#.
|
|
.. include:: steps/adjust-config.rst
|
|
|
|
#. Create the database used by Weblate, see :ref:`database-setup`.
|
|
|
|
#. Build Django tables, static files and initial data (see
|
|
:ref:`tables-setup` and :ref:`static-files`):
|
|
|
|
.. code-block:: sh
|
|
|
|
weblate migrate
|
|
weblate collectstatic
|
|
weblate compress
|
|
|
|
.. note::
|
|
|
|
This step should be repeated whenever you update the repository.
|