FAQ | This is a LIVE service | Changelog

Skip to content

feat: make API optional

Dr Rich Wareham requested to merge make-api-optional into master

Add include_api to the cookiecutter context. If set to NO then the api module won't be included. This is mostly useful for tiny "pure Django" apps with the traditional request -> render webapp model.

Tweak the logic surrounding adding Django social auth. In general we assume that apps with UI disabled but API enabled are "pure API" applications and don't need social auth. Any other combination results in social auth being added.

Tested by bootstrapping a new Django project for the Regent House Ballot voting site.

Merge request reports