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.10.9
* enables using `get_accessible_profiles` without deriving from Mixin
* adds `manages_broker` as a shortcut
[previous release notes](changelog)
Raw data
{
"_id": null,
"home_page": "",
"name": "djaodjin-deployutils",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "The DjaoDjin Team <help@djaodjin.com>",
"keywords": "deployutils,session,django,flask",
"author": "",
"author_email": "The DjaoDjin Team <help@djaodjin.com>",
"download_url": "https://files.pythonhosted.org/packages/a8/6a/a600263faa8fb1a9cfefe045f73f89a7ff50327db972a98bdd139bd5e253/djaodjin-deployutils-0.10.9.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.10.9\n\n * enables using `get_accessible_profiles` without deriving from Mixin\n * adds `manages_broker` as a shortcut\n\n[previous release notes](changelog)\n",
"bugtrack_url": null,
"license": "BSD-2-Clause",
"summary": "Deploy webapps hosted on djaodjin.com",
"version": "0.10.9",
"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": "0169b6d9500fb397466f3e88ab69694da192723856caa209b034f108ab90a3b2",
"md5": "c55645d1cdf5902255298b4b131664c2",
"sha256": "613f4e970a59b04eaf5571f7212bd7da818c3438d847c9b6be916f444da02364"
},
"downloads": -1,
"filename": "djaodjin_deployutils-0.10.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c55645d1cdf5902255298b4b131664c2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 97402,
"upload_time": "2024-03-08T20:27:22",
"upload_time_iso_8601": "2024-03-08T20:27:22.024092Z",
"url": "https://files.pythonhosted.org/packages/01/69/b6d9500fb397466f3e88ab69694da192723856caa209b034f108ab90a3b2/djaodjin_deployutils-0.10.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a86aa600263faa8fb1a9cfefe045f73f89a7ff50327db972a98bdd139bd5e253",
"md5": "c670d42cd07ad7f5aa978969d7c9fa95",
"sha256": "7d523f54f2fb1ec84abf8a9cdcaa2318ae278f2b5bc30e5667997c3fe9c238d9"
},
"downloads": -1,
"filename": "djaodjin-deployutils-0.10.9.tar.gz",
"has_sig": false,
"md5_digest": "c670d42cd07ad7f5aa978969d7c9fa95",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 50285,
"upload_time": "2024-03-08T20:27:24",
"upload_time_iso_8601": "2024-03-08T20:27:24.224479Z",
"url": "https://files.pythonhosted.org/packages/a8/6a/a600263faa8fb1a9cfefe045f73f89a7ff50327db972a98bdd139bd5e253/djaodjin-deployutils-0.10.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-08 20:27:24",
"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"
}