DjaoDjin deployutils
====================
This Python module enables a Django or Flask project to seamlessly integrate
behind the [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 project
by the HTTP session manager.
Tested with
- **Python:** 3.7, **Django:** 3.2 ([LTS](https://www.djangoproject.com/download/)), **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](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
$ 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](https://www.djangoproject.com/download/))
- **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](changelog)
Raw data
{
"_id": null,
"home_page": null,
"name": "djaodjin-deployutils",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "The DjaoDjin Team <help@djaodjin.com>",
"keywords": "deployutils, session, django, flask",
"author": null,
"author_email": "The DjaoDjin Team <help@djaodjin.com>",
"download_url": "https://files.pythonhosted.org/packages/84/14/ddcc9bd3a6a9f80ad65c57c195de2faec7c2e3b771210ba7c039c8d1ad6d/djaodjin_deployutils-0.11.0.tar.gz",
"platform": null,
"description": "DjaoDjin deployutils\n====================\n\nThis Python module enables a Django or Flask project to seamlessly integrate\nbehind the [HTTP session manager reverse proxy](https://github.com/djaodjin/djaoapp).\nIt will replace the default ``django.contrib.sessions``\nand ``AUTHENTICATION_BACKENDS`` to decode sessions forwarded to your project\nby the HTTP session manager.\n\nTested with\n\n- **Python:** 3.7, **Django:** 3.2 ([LTS](https://www.djangoproject.com/download/)), **Django Rest Framework:** 3.12\n- **Python:** 3.10, **Django:** 4.0 (latest), **Django Rest Framework:** 3.12\n- **Python:** 2.7, **Django:** 1.11 (legacy), **Django Rest Framework:** 3.9.4\n\n[More technical documentation](https://djaodjin.com/docs/technical/)\n\nInstall\n-------\n\nInstall deployutils into your environment\n\n\n $ pip install djaodjin-deployutils\n\nSee the steps to [integrate with a Django project](docs/deploy-django.rst).\n\n\nDevelopment\n-----------\n\nClone the repository in a virtualenv and install the prerequisites\n\n\n $ python3 -m .venv\n $ source .venv/bin/activate\n $ pip install -r testsite/requirements.txt\n\n\nCreate the credentials file with a ``DJAODJIN_SECRET_KEY`` and the empty db.\n\n\n $ make initdb\n\n\nRun the web application\n\n\n $ python manage.py runserver\n\n\nBrowse to http://localhost:8000\n\nRelease Notes\n=============\n\nTested with\n\n- **Python:** 3.7, **Django:** 3.2 ([LTS](https://www.djangoproject.com/download/))\n- **Python:** 3.10, **Django:** 4.2 (latest)\n- **Python:** 2.7, **Django:** 1.11 (legacy) - use testsite/requirements-legacy.txt\n\n0.11.0\n\n * makes `manages_broker` a property (breaking change)\n * fixes missing get_context_data\n * adds message about env variables override\n\n[previous release notes](changelog)\n",
"bugtrack_url": null,
"license": "BSD-2-Clause",
"summary": "Deploy webapps hosted on djaodjin.com",
"version": "0.11.0",
"project_urls": {
"changelog": "https://github.com/djaodjin/djaodjin-deployutils/changelog",
"documentation": "https://djaodjin-deployutils.readthedocs.io/",
"repository": "https://github.com/djaodjin/djaodjin-deployutils"
},
"split_keywords": [
"deployutils",
" session",
" django",
" flask"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "485fc008aa0c02b1f3ac9cc7765068ec84f3622f20e7a4b8375bd42ab8197355",
"md5": "d3a63c4ecb8fbba3e46775e80a6f94e5",
"sha256": "2be26e4a1f5d0b3ebf63a1a8b1b10bec0ff2da0b1e1e6d6ed94a53ca0e391f7a"
},
"downloads": -1,
"filename": "djaodjin_deployutils-0.11.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d3a63c4ecb8fbba3e46775e80a6f94e5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 97590,
"upload_time": "2024-06-18T06:14:52",
"upload_time_iso_8601": "2024-06-18T06:14:52.345411Z",
"url": "https://files.pythonhosted.org/packages/48/5f/c008aa0c02b1f3ac9cc7765068ec84f3622f20e7a4b8375bd42ab8197355/djaodjin_deployutils-0.11.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8414ddcc9bd3a6a9f80ad65c57c195de2faec7c2e3b771210ba7c039c8d1ad6d",
"md5": "4700944c7c95dd47033af421166ce688",
"sha256": "c424536bc0086db652ad6e4887c92bef0ff7e46731ed297dfac5cc7828517a05"
},
"downloads": -1,
"filename": "djaodjin_deployutils-0.11.0.tar.gz",
"has_sig": false,
"md5_digest": "4700944c7c95dd47033af421166ce688",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 50526,
"upload_time": "2024-06-18T06:14:58",
"upload_time_iso_8601": "2024-06-18T06:14:58.541085Z",
"url": "https://files.pythonhosted.org/packages/84/14/ddcc9bd3a6a9f80ad65c57c195de2faec7c2e3b771210ba7c039c8d1ad6d/djaodjin_deployutils-0.11.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-18 06:14:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "djaodjin",
"github_project": "djaodjin-deployutils",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "djaodjin-deployutils"
}