Deploy webapps hosted on djaodjin.com
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
$ python3 -m .venv
$ source .venv/bin/activate
$ 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
Tested with
- Python: 3.7, Django: 3.2 (LTS)
- Python: 3.10, Django: 4.2 (latest)
- Python: 2.7, Django: 1.11 (legacy) - use testsite/requirements-legacy.txt
0.10.9
- enables using
get_accessible_profiles
without deriving from Mixin - adds
manages_broker
as a shortcut
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
Built Distribution
Close
Hashes for djaodjin-deployutils-0.10.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d523f54f2fb1ec84abf8a9cdcaa2318ae278f2b5bc30e5667997c3fe9c238d9 |
|
MD5 | c670d42cd07ad7f5aa978969d7c9fa95 |
|
BLAKE2b-256 | a86aa600263faa8fb1a9cfefe045f73f89a7ff50327db972a98bdd139bd5e253 |
Close
Hashes for djaodjin_deployutils-0.10.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 613f4e970a59b04eaf5571f7212bd7da818c3438d847c9b6be916f444da02364 |
|
MD5 | c55645d1cdf5902255298b4b131664c2 |
|
BLAKE2b-256 | 0169b6d9500fb397466f3e88ab69694da192723856caa209b034f108ab90a3b2 |