Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.06 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.06 KB

Django KMS Encrypted Fields

Repository unmaintained

As Intelligems has stopped operations since Aug19, this repository remains unmaintained. Whoever may be interested to keep it up-to-date or extend it, DM koslib to arrange project transfer.

Installation

  • Connected to OpenVPN server
pip install django_kmsfield \
   --extra-index-url http://pypi.intelligems.eu \
   --trusted-host pypi.intelligems.eu \
   --process-dependency-links

Django Setup

  • Add kms_field package to installed apps and
  • Add below settings to base project settings.py
import os

# Application definition

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'kms_field',
    'your_app_name'
]

# ...

AWS_ACCESS_KEY_ID = os.getenv('AWS_ACCESS_KEY_ID')
AWS_SECRET_ACCESS_KEY = os.getenv('AWS_SECRET_ACCESS_KEY')
REGION_NAME = os.getenv('REGION_NAME')

CMK = os.getenv('CMK')