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.8
- takes excluded templates into account when packaging theme
- security renames DB_LOCATION to DB_SECRET_LOCATION to redact db_password
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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06adaaa9fa1dda95cfb8a4795efa8269baa8e2f5e5ae8476618d684e37a5d333 |
|
MD5 | a73e0f890c84bc7312c4018f1a5d2b9b |
|
BLAKE2b-256 | 26ccca81256de9c45c5cd90145a1bbd6e0df5bf2b8b9743142368327664f142c |
Close
Hashes for djaodjin_deployutils-0.10.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79b42f33061e08f627d238370acb56d04481eb0b8d1537d459a7d93886f5d839 |
|
MD5 | b6569999608e14a02b1ec3742ed679fe |
|
BLAKE2b-256 | 0d17b5dd5cf054433d6a88a4ff04663fc27e12763e4ef1fe94cd59e3fe2cde9d |