FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

feat: make API optional

Merged Dr Rich Wareham requested to merge make-api-optional into master
  1. Oct 17, 2023
    • Dr Rich Wareham's avatar
      feat: make API optional · 37343345
      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.
      37343345
Loading