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.7
- enables download of templates only, i.e. skip assets
- enables defining APP_PREFIX in settings.py
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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 558b4fe57f12d7681dbc21eef84220c3c7c97bd75fce8249a3a88f157739dbb6 |
|
MD5 | 74684721ac0bf144d4cb1ddfa41bc470 |
|
BLAKE2b-256 | 951230c9abeb2678a2af54dc89c95fa1a5b3b679155f6033a87442b6ef456bd6 |
Close
Hashes for djaodjin_deployutils-0.10.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a66d983dfd84c4d929ec5b40785ed1228d394160b0f2f1cc86e9c415a1ddff4 |
|
MD5 | bd97b1884284953a8ab3d3e33eca2bf4 |
|
BLAKE2b-256 | 92e0ec5e96283995815b274189d13f644512811e0f44ca4af1ce7d029a9f0f97 |