8000 GitHub - pythonif/django-lgi: django-lgi is a python module that interprets HTTP API requests sent to your Django project in Lambda. · GitHub
[go: up one dir, main page]

Skip to content

About

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

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

django-lgi - Django Lambda Gateway Interface

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

Features

Installation

pip install django-lgi

Usage

Create lgi.py 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.

Examples

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

Related Projects

Testing

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

$ flit install -s
$ cd tests
$ ./runtests.py

About

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

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0