Skip to content

Files

Latest commit

 

History

History
26 lines (17 loc) · 714 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 714 Bytes

JSON 101

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.

Quickstart

$ 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

Related documentation

Most interesting files

  • models.py - Polymorphic user models definitions