JSON storage and polymorphic user model
This sample shows how to use JSON storage and polymorphic proxy models, to implement efficient, single table authentication for different types of users.
$ git clone https://github.com/viewflow/cookbook.git
$ python3 -m venv json101/venv
$ source json101/venv/bin/activate
$ pip install json101/requirements.txt --extra-index-url=...
$ python3 json101/manage.py migrate
$ python3 json01/manage.py runserver
Navigate to http://127.0.0.1:8000
- models.py - Polymorphic user models definitions