Updating DSCng installation

Updating DSCng installation

Updating application files

First you need to update the application files. To do this, simply remove all the files of the old DSCng installation (backup of the old data is recommended, also you need to backup the settings_local.py and possibly other configuration files) and copy contents of the directory dscng-x.y.z from the installation tarball to your DSCng's installation directory. After copying the files, restore all your custom files and files with your local settings. It's also possible to replace all the old files with the files from the new distribution, this could however cause leaving unused files in the directory if the application's structure changes.

If you are running the development version from the Git repository, all you need to do is run git pull in the root of the DSCng installation.

Updating statics and running migrations

After successfully updating the application files, you have to do some additional steps. First one is updating the static files (just like you did during the installation). Go to the directory containing file manage.py (e.g. /path/to/dscng/dsc/) and run:

./manage.py collectstatic

Second step is not always needed, however it'd not cause any harm if you do it every time. If the DB schema changed since the last installed version, running a DB updating script is needed. This script automatically detects version of your database schema and executes required migrations. You can run the script (in the DSCng's root directory) using:

python update_db_schema.py

NOTE: If you are using separate Python virtual environment for DSCng, either replace python with path to python executable in the virtual environment or activate the virtual environment in your shell first.