Weblate has an add-on called "Update PO files to match POT (msgmerge)". I want to delegate the creation of .po files to Weblate and only use manage.py makemessages to create the .pot file(s).
manage.py makemessages has a --keep-pot option, which adds .pot files to the output. Unfortunately there is no option to only keep the .pot files.
It is possible to skip the creation of
.pofiles by overwriting thewrite_po_filemethod of themakemessagescommand. To do so, create amakemessages.pyfile inmanagement/commands(as described in the Django docs):