Going Productive¶
1. repo ini files¶
odoo_xmlrpc_twisted
sudo nano /usr/local/logistics/Python/repo/odoo_xmlrpc_twisted/config/parameter_global.ini
Change the settings of the URL url of the twisted server
[get_settings_twisted] # the following parameter are used by the python program "test_twisted_connection" # url of the twisted server host = https://dingx.gotdns.ch
Change the locations of the SSL certificate files
[get_settings_twisted] # the following parameter are used by the python program "test_twisted_connection" # path to the certificate file certificate_key = /etc/letsencrypt/live/dingx.gotdns.ch/fullchain.pem # path to the private key file private_key = /etc/letsencrypt/live/dingx.gotdns.ch/privkey.pem
raspi_catch_object
sudo nano /usr/local/logistics/Python/repo/raspi_catch_object/parameter_global.ini
Change the settings of the URL
[settings_twisted_server] # server_url must start with "http" or "https" server_url = https://dingx.gotdns.ch:7080
django
settings
sudo nano /usr/local/logistics/Python/repo/django_webapps_fullstack/settings/parameter_global.ini
Change the settings of the URL
[settings_twisted_server] # server_url must start with "http" or "https" server_url = https://localhost:7080
2. Django Migrations¶
Migrate the Django applications into the new environment:
sudo /usr/local/logistics/Python/venv/django_webapps_fullstack/bin/python3 /usr/local/logistics/Python/repo/django_webapps_fullstack/manage.py migrate