Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Django Lambda Gateway Interface

Project description

django-lgi - Django Lambda Gateway Interface

django-lgi is a python module that interprets HTTP API requests sent to your Django project in Lambda.



pip install django-lgi


Create file in Django project root. Remember to replace mysite.settings with dotted path to your settings module.

import os

from lgi import get_lgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")

application = get_lgi_application()

Set lambda handler to mysite.lgi.application.


  • Djambda - example project setting up Django application in AWS Lambda managed by Terraform.

Related Projects


To run the test suite, first, create and activate a virtual environment. Then run tests.

$ flit install -s
$ cd tests
$ ./

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-lgi, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size django_lgi-0.1.2-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-lgi-0.1.2.tar.gz (7.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page