📋 Task Description
📌 Description
This PR improves the JalWiKi .env.template by restructuring and standardizing environment variables for better security, scalability, and contributor experience.
🎯 Goals and Objectives
Standardized environment variable naming (JALWIKI_SECRET_KEY, JWT_SIGNING_KEY, etc.)
Replaced multiple DB_* vars with 12-factor DATABASE_URL (Postgres/SQLite support)
Introduced ENVIRONMENT (development | staging | production) instead of separate ENV and DEBUG flags
Enhanced JWT security with separate signing vs refresh keys
Added LOG_FORMAT option (plain/json) for structured logging in production
Commented out optional services (Redis, Celery, Email) by default for clarity
Improved inline documentation for contributors
🏷️ Task Type
Performance Optimization
🧩 Component
Backend (Django/API)
🔥 Priority Level
Critical - Needs immediate attention
📊 Difficulty Level
Expert - Very complex task
✅ Acceptance Criteria
Added .env.template with all required configs (DB, JWT, AI, Email, CORS, Security, Logging).
Updated docs on how to copy .env.template → .env.
Verified app runs with template values.
Ensured no real secrets are committed.
📚 Resources and References
No response
📋 Additional Context
No response
📋 Task Description
📌 Description
This PR improves the JalWiKi .env.template by restructuring and standardizing environment variables for better security, scalability, and contributor experience.
🎯 Goals and Objectives
Standardized environment variable naming (JALWIKI_SECRET_KEY, JWT_SIGNING_KEY, etc.)
Replaced multiple DB_* vars with 12-factor DATABASE_URL (Postgres/SQLite support)
Introduced ENVIRONMENT (development | staging | production) instead of separate ENV and DEBUG flags
Enhanced JWT security with separate signing vs refresh keys
Added LOG_FORMAT option (plain/json) for structured logging in production
Commented out optional services (Redis, Celery, Email) by default for clarity
Improved inline documentation for contributors
🏷️ Task Type
Performance Optimization
🧩 Component
Backend (Django/API)
🔥 Priority Level
Critical - Needs immediate attention
📊 Difficulty Level
Expert - Very complex task
✅ Acceptance Criteria
Added .env.template with all required configs (DB, JWT, AI, Email, CORS, Security, Logging).
Updated docs on how to copy .env.template → .env.
Verified app runs with template values.
Ensured no real secrets are committed.
📚 Resources and References
No response
📋 Additional Context
No response