Skip to main content

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

More technical documentation

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.11.0

  • makes manages_broker a property (breaking change)
  • fixes missing get_context_data
  • adds message about env variables override

previous release notes

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

djaodjin_deployutils-0.11.0.tar.gz (50.5 kB view details)

Uploaded Source

Built Distribution

djaodjin_deployutils-0.11.0-py3-none-any.whl (97.6 kB view details)

Uploaded Python 3

File details

Details for the file djaodjin_deployutils-0.11.0.tar.gz.

File metadata

  • Download URL: djaodjin_deployutils-0.11.0.tar.gz
  • Upload date:
  • Size: 50.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.13

File hashes

Hashes for djaodjin_deployutils-0.11.0.tar.gz
Algorithm Hash digest
SHA256 c424536bc0086db652ad6e4887c92bef0ff7e46731ed297dfac5cc7828517a05
MD5 4700944c7c95dd47033af421166ce688
BLAKE2b-256 8414ddcc9bd3a6a9f80ad65c57c195de2faec7c2e3b771210ba7c039c8d1ad6d

See more details on using hashes here.

File details

Details for the file djaodjin_deployutils-0.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for djaodjin_deployutils-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2be26e4a1f5d0b3ebf63a1a8b1b10bec0ff2da0b1e1e6d6ed94a53ca0e391f7a
MD5 d3a63c4ecb8fbba3e46775e80a6f94e5
BLAKE2b-256 485fc008aa0c02b1f3ac9cc7765068ec84f3622f20e7a4b8375bd42ab8197355

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page