Skip to content

feat: add startup settings warnings#420

Closed
saurabhhhcodes wants to merge 1 commit into
Kuldeeep18:mainfrom
saurabhhhcodes:codex/startup-env-validation
Closed

feat: add startup settings warnings#420
saurabhhhcodes wants to merge 1 commit into
Kuldeeep18:mainfrom
saurabhhhcodes:codex/startup-env-validation

Conversation

@saurabhhhcodes

Copy link
Copy Markdown
Contributor

Adds startup-time warnings for missing critical environment settings so misconfigured deployments fail visibly instead of breaking later in feature code.

What changed:

  • added a small startup helper that prints a bold-style warning listing missing critical settings
  • invoked the helper from both wsgi.py and asgi.py after Django setup
  • added unit tests for both the warning and quiet paths

Validation:

  • python3 -m py_compile backend/backend/startup.py backend/backend/wsgi.py backend/backend/asgi.py backend/backend/tests.py
  • python3 backend/manage.py test backend.tests.StartupSettingsValidationTests -v 2
  • git diff --check

@coderabbitai

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 95290030-cc9a-4774-ba17-378fd397308e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@Kuldeeep18 Kuldeeep18 closed this Jun 24, 2026
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.

2 participants