Skip to content

Shell scripts

Sam Walton edited this page Apr 15, 2020 · 4 revisions

Shell scripts

A suite of shell scripts for performing various functions can be found in the /bin folder.

These scripts can be run with, for example docker-compose exec twlight /app/bin/virtualenv_migrate.sh.

Migrating

The script virtualenv_migrate.sh will, for each TWLight app, run:

  • python manage.py createinitialrevisions
  • python manage.py makemigrations
  • python manage.py migrate
  • python manage.py sync_translation_fields

See the official documentation for more on what each of these commands does.

Clone this wiki locally