The example appΒΆ
The project ships a small twitter clone under example/ that exercises
every component:
models.py:User(mixing inBaseUser),Relationship,Message, andNoteauth.py:Authwith the customUsermodeladmin.py: model admins using columns, search, filters, and foreign-key lookups, plus two dashboard panelsapi.py: a REST api with user and admin authentication, owner-restricted writes, and nested user resourcesviews.py: the public site, including a/join/signup view built onAuth.login_user()
Run it from a source checkout:
$ cd example/
$ python run_example.py
Log in as admin/admin at http://127.0.0.1:5000/admin/, and try the API at http://127.0.0.1:5000/api/message/.