Flexible framework to check permissions to URIs and forward HTTP requests
This project contains bare bone templates. To see it in action, integrated into a full-fledged subscription-based session proxy with bootstrap-styled dashboards, take a look at djaoapp.
After cloning the repository, create a virtualenv environment and install the prerequisites:
$ python -m venv .venv
$ source .venv/bin/activate
$ pip install -r testsite/requirements.txt
It remains to create the database and populate it with test data.
$ python ./manage.py migrate --run-syncdb --noinput
$ python ./manage.py loaddata testsite/fixtures/test_data.json
Run the testsite
$ python ./manage.py runserver
Tested with
- Python: 3.10, Django: 4.2 (LTS)
- Python: 3.12, Django: 5.1 (next)
- Python: 3.7, Django: 3.2 (legacy)
0.4.8
- adds compatibility with Django5.1
- expands CORS headers to pass credentials
- deals with
get_current_app
returningNone