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](https://github.com/djaodjin/djaoapp). 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: 2.2 ([LTS](https://www.djangoproject.com/download/)), Django Rest Framework: 3.12
Python: 3.7, Django: 4.0 (latest), Django Rest Framework: 3.12
Python: 2.7, Django: 1.11 (legacy), Django Rest Framework: 3.9.4
[More technical documentation](https://djaodjin.com/docs/technical/)
Install
Install deployutils into your environment
$ pip install djaodjin-deployutils
See the steps to [integrate with a Django project](docs/deploy-django.rst).
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.7.2
merges AccessiblesMixin into AccountMixin
adds AccessiblesMixin.accessible_plans property
adds a login mockup API
adds command to integrate Django server with webpack
removes register mockup API
[previous release notes](changelog)
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.7.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5fb00003f2edb89a2fd6b7b36a6596219c7d756550bf887d7c44f47d8e4901b |
|
MD5 | de1da067dc7b52e683ba6c8a6ce3e4b9 |
|
BLAKE2b-256 | e512d92449d92b148dd7c22e5ca85f403a91a489a03aac4f16bbe1220e21a729 |