Deploy webapps running behind djaoapp session manager
Project description
This Django app enables a Django project to seamlessly integrate behind the [DjaoDjin 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 Django project by the HTTP session manager.
[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
Bonus commands
Commands to upload/download resources
$ python manage.py download_resources $ python manage.py upload_resources
Not all assets are stored under source control. Images, videos, etc. are better kept outside the git repository. These two commands are used to download the extra resources into the webapp htdocs/ directory from the stage server and upload them from the webapp htdocs/ directory to the stage server respectively.
Fetch/merge from the remote git repository and downlad the extra resources from the stage server.
Using configuration files from a S3 bucket
$ python manage.py upload_configs –location s3://__example__ credentials site.conf
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.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 865b857837290c9a1beb45514f68d2bca673d78f96fbcdeb783ca8b06d77c26d |
|
MD5 | d8997da9add7a4d3ae2fc261d2b310eb |
|
BLAKE2b-256 | 78d10b4050ce89eddf0440be5bf67b281abb57083adde86ac2278de392c7f2da |