File tree Expand file tree Collapse file tree 1 file changed +34
-3
lines changed
Expand file tree Collapse file tree 1 file changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,12 @@ Development
6161-----------
6262
6363For development, first install dependencies. The ones needed for running the
64- server are listed in ``requirements.txt ``, for running testsuite in
65- ``requirements-test.txt ``. You can install them using your distribution (the
66- package names will usually add python- prefix) or using pip:
64+ server are listed in ``requirements.txt `` and the ones for running the testsuite are in
65+ ``requirements-test.txt ``.
66+
67+ You can install them using pip or using packages from your distribution
68+ (see `Debian packages `_)
69+ to avoid to have to use ``--break-system-packages ``.
6770
6871.. code-block :: sh
6972
@@ -104,6 +107,34 @@ To add a new user (for `/admin/`):
104107 Deployment
105108----------
106109
110+ On a Debian Trixie server:
111+
112+ .. _Debian packages :
113+
114+ .. code-block :: sh
115+
116+ # Install Python pip
117+ apt install -y \
118+ python3-django \
119+ python3-dateutil \
120+ python3-feedparser \
121+ python3-django-markupfield \
122+ python3-docutils \
123+ python3-markdown \
124+ python3-pytz \
125+ python3-bs4 \
126+ python3-django-compressor \
127+ python3-django-appconf \
128+ python3-mysqldb
129+
130+ You might need to ensure the `PYTHONPATH ` ENV variable is set to the correct value.
131+ Or commands will output ``ModuleNotFoundError: No module named 'django' `` or something very similar.
132+
133+ .. code-block :: sh
134+ # Define the PYTHONPATH variable
135+ # Maybe add this to your ~/.bashrc ?
136+ export PYTHONPATH=" /usr/local/lib/python3.13/site-packages/:/usr/lib/python3/dist-packages/:${PYTHONPATH} "
137+
107138 Cron jobs:
108139
109140.. code-block :: sh
You can’t perform that action at this time.
0 commit comments