Going Productive

1. repo ini files

  1. odoo_xmlrpc_twisted

    sudo nano /usr/local/logistics/Python/repo/odoo_xmlrpc_twisted/config/parameter_global.ini
    

  1. 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
    

  1. 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
    

  1. raspi_catch_object

    sudo nano /usr/local/logistics/Python/repo/raspi_catch_object/parameter_global.ini
    

  1. Change the settings of the URL

    [settings_twisted_server]
    # server_url must start with "http" or "https"
    server_url  = https://dingx.gotdns.ch:7080
    

  1. django

    1. settings

      sudo nano /usr/local/logistics/Python/repo/django_webapps_fullstack/settings/parameter_global.ini
      

  1. 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

  1. 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