feat(djinit/templates/project): improve secret key formatting and generate requirements via uv

Remove leading space in SECRET_KEY assignment and replace uv pip compile with uv run python ... to produce requirements.txt.

New Features
- Introduce uv-driven dependency compilation in justfile.j2
- Ensure generated requirements.txt reflects project dependencies from pyproject.toml

Enhancements
- Align secret key configuration to match production standards (no extra whitespace)

Bug Fixes
- Eliminate accidental whitespace that could cause secret key validation issues
This commit is contained in:
sankalp committed 2026-02-28 23:50:26 +05:45
1 parent aefeeadf3e
commit 4ecea0afe3
1 file changed
+1 -1
+1 -1
View File
@@ -82,7 +82,7 @@ showmigrations:
# Sync dependencies (uv equivalent of pip freeze) # Sync dependencies (uv equivalent of pip freeze)
requirements: requirements:
uv pip compile uv run python -c "import tomllib; p = tomllib.load(open('pyproject.toml', 'rb')); print('\n'.join(p['project']['dependencies']))" > requirements.txt
# Run all linting and checks # Run all linting and checks
ci: ci: