Upgrade 15.X to 16.0

Note

If you have addons on your site, make sure you have your addons upgraded to be Django 5.2 LTS compatible before upgrading your site to Tendenci 16.

Note

Django 5.2 dropped support for Python 3.8 and 3.9, and PostgreSQL 13.

Step 1: Prepare for Upgrade

Back up your site and database! If your PostgreSQL version is below 14, please upgrade before proceeding.

Replace the content of the requirements/tendenci.txt with the following:

tendenci>=16,<17

As always, we recommend to create a new virtual env instead of using the existing one.

Step 2: Upgrade Tendenci

Run:

cd /var/www/mysite/
source /srv/mysite/bin/activate
# For production sites, run
pip install -r requirements/prod.txt --upgrade
# For dev sites on your local, run
pip install -r requirements/dev.txt --upgrade
python manage.py migrate
python manage.py deploy
python manage.py clear_cache
python manage.py rebuild_index

Step 3: Upgrade System Commands

Replace the virtualenv in:
  • cron jobs

  • systemd unit file.

After update is done, restart your site.