### relocate postgres db, if you're not using your root disk
### [relocate postgres db, if you're not using your root disk](https://www.digitalocean.com/community/tutorials/how-to-move-a-postgresql-data-directory-to-a-new-location-on-ubuntu-18-04)
## change the configuration of the desired otree server with all installed instances
## change the configuration of the desired otree server with all installed instances
After setting your desired configuration you are ready to run the playbook.
After setting your desired configuration you are ready to run the playbook.
...
@@ -107,8 +107,8 @@ otree_users:
...
@@ -107,8 +107,8 @@ otree_users:
### I see "TypeError: __init__() missing 1 required positional argument: 'on_delete'"?
### I see "TypeError: __init__() missing 1 required positional argument: 'on_delete'"?
Most likely an older otree version has to be configured. Set ``otree==<desired_version>`` in ``requirements_base.txt``. Since Django 2.0 the "on_delete" parameter is required in a model and needs to be added in your code or in the included apps (e.g otree-tools).
Most likely an older otree version has to be configured. Set ``otree==<desired_version>`` in ``requirements_base.txt``. Since Django 2.0 the "on_delete" parameter is required in a model and needs to be added in your code or in the included apps (e.g otree-tools).
### I see "ModuleNotFoundError: No module named '<someexperimentname>'"?
### I see "ModuleNotFoundError: No module named '``<someexperimentname>``'"?
Remove the definition in variable ``SESSION_CONFIGS`` from ``settings.py``.
Remove the definition in variable ``SESSION_CONFIGS`` from ``settings.py```or add the corresponding code to your otree project.
### I see "ModuleNotFoundError: No module named 'otree_tools'"?
### I see "ModuleNotFoundError: No module named 'otree_tools'"?
Add ``otree_tools==<desired_version>`` in ``requirements_base.txt``.
Add ``otree_tools==<desired_version>`` in ``requirements_base.txt``.