feat: make API optional
Compare changes
Files
10+ 5
− 0
@@ -7,9 +7,14 @@ import os
GitLab will be upgraded on 14-April-2025 between 12:00 and 14:00. There may be small periods of service instability.
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.