From 4ecea0afe32c3e677e430e7f09e72a55c35dbf98 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sat, 28 Feb 2026 23:50:26 +0545 Subject: [PATCH] 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 --- djinit/templates/project/env_sample.j2 | 2 +- djinit/templates/project/justfile.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/djinit/templates/project/env_sample.j2 b/djinit/templates/project/env_sample.j2 index f5f2388..88215d0 100644 --- a/djinit/templates/project/env_sample.j2 +++ b/djinit/templates/project/env_sample.j2 @@ -1,6 +1,6 @@ # Django settings DJANGO_SETTINGS_MODULE={{ project_name }}.settings.development -SECRET_KEY= your-secret-key +SECRET_KEY=your-secret-key ALLOWED_HOSTS=api.your-domain.com,www.your-domain.com {% if use_database_url %} diff --git a/djinit/templates/project/justfile.j2 b/djinit/templates/project/justfile.j2 index b5e511d..3180917 100644 --- a/djinit/templates/project/justfile.j2 +++ b/djinit/templates/project/justfile.j2 @@ -82,7 +82,7 @@ showmigrations: # Sync dependencies (uv equivalent of pip freeze) 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 ci: