feat: make API optional
- Oct 17, 2023
-
-
Dr Rich Wareham authored
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.
-