Skip to content

[codex] Harden Django template architecture#85

Merged
JscorpTech merged 1 commit into
mainfrom
codex/template-architecture-hardening
May 12, 2026
Merged

[codex] Harden Django template architecture#85
JscorpTech merged 1 commit into
mainfrom
codex/template-architecture-hardening

Conversation

@JscorpTech
Copy link
Copy Markdown
Owner

Summary

  • Make the default cookiecutter render minimal by turning optional integrations off unless selected.
  • Add generated-project architecture guidance, stronger repo hygiene, pre-commit, Makefile quality targets, and CI template validation.
  • Harden security defaults for allowed hosts, CORS, production secure settings, and debug-only static/media serving.
  • Move account/auth sample flows toward service-layer boundaries and strengthen behavior/failure-path tests.

Validation

  • python scripts/validate_template.py
  • Rendered default project: isort --check-only --diff .
  • Rendered default project: black --check .
  • Rendered default project: flake8 .
  • Rendered default project: python -m compileall
  • Rendered default and all-optional projects: docker compose config

Notes

Full generated-project pytest and pyright were not run in Docker during this pass; the new quality gates and template render smoke checks are in place for CI.

@JscorpTech JscorpTech marked this pull request as ready for review May 12, 2026 18:58
@JscorpTech JscorpTech merged commit 1006351 into main May 12, 2026
1 check passed
@JscorpTech JscorpTech deleted the codex/template-architecture-hardening branch May 12, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant