Amazon Web Services

Introduction

This guide will help you add sqlcommenter to your Django applications running on Amazon Web Services (AWS)

Requirements

Steps Resource
Python on AWS https://aws.amazon.com/getting-started/projects/deploy-python-application/
google-cloud-sqlcommenter https://pypi.org/project/google-cloud-sqlcommenter
Django 2.X https://docs.djangoproject.com/en/stable/faq/install
Python 3.X https://www.python.org/downloads/

Addition to your code

For any Django deployment, we can just edit your settings.py file and update the MIDDLEWARE section with

MIDDLEWARE = [
  'google.cloud.sqlcommenter.django.middleware.SqlCommenter',
  ...
]
If any middleware execute database queries (that you'd like commented by SqlCommenter), those middleware MUST appear after 'google.cloud.sqlcommenter.django.middleware.SqlCommenter'

References

Resource URL
Deploying Python applications on AWS https://aws.amazon.com/getting-started/projects/deploy-python-application/
General sqlcommenter Django guide /python/django