Deploy webapps running behind djaoapp session manager
Project description
DjaoDjin deployutils
This Python module enables a Django or Flask project to seamlessly integrate
behind the HTTP session manager reverse proxy.
It will replace the default django.contrib.sessions
and AUTHENTICATION_BACKENDS
to decode sessions forwarded to your project
by the HTTP session manager.
Tested with
- Python: 3.7, Django: 3.2 (LTS), Django Rest Framework: 3.12
- Python: 3.10, Django: 4.0 (latest), Django Rest Framework: 3.12
- Python: 2.7, Django: 1.11 (legacy), Django Rest Framework: 3.9.4
Install
Install deployutils into your environment
$ pip install djaodjin-deployutils
See the steps to integrate with a Django project.
Development
Clone the repository in a virtualenv and install the prerequisites
$ virtualenv _installTop_
$ cd _installTop_
$ source bin/activate
$ git clone https://github.com/djaodjin/djaodjin-deployutils.git
$ cd djaodjin-deployutils
$ pip install -r testsite/requirements.txt
Create the credentials file with a DJAODJIN_SECRET_KEY
and the empty db.
$ make initdb
Run the web application
$ python manage.py runserver
Browse to http://localhost:8000
Release Notes
0.10.3
- prevents returning a dict with only the exp field
- restores backward compatibility with py27
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for djaodjin-deployutils-0.10.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cb418c4013852293e9f37c2e3ea641aec32acefa887bf72bd44a5a5d5ca8453 |
|
MD5 | b58f20f09f5ff93dbb8555655a0c81d6 |
|
BLAKE2b-256 | 176a595ce93ebc9013da02c1f7a29e548ee058ba45d66d922499a777534d7a78 |