Installation

At the command line:

pip install cloudcix

Python Application

Create a settings module:

# settings.py
CLOUDCIX_AUTH_URL = 'https://keystone.cloudcix.com/v3'
CLOUDCIX_API_URL = 'https://api.cloudcix.com/'
CLOUDCIX_API_USERNAME = 'username'
CLOUDCIX_API_PASSWORD = 'yourpassword'
CLOUDCIX_API_ID_MEMBER = 'your_member_id'

you can find your member ID at https://saas.cloudcix.com/membership/setup/account/member/

and configure the Python environment:

# app.py

import os
os.environ['CLOUDCIX_SETTINGS_MODULE'] = 'settings'

Django Application

Add the same settings from the previous section in your Django settings module. python-cloudcix will import the settings using Django.