Skip to content

Expose Django settings and storage alias constants - #410

Merged
kodiakhq[bot] merged 1 commit into
sbdchd:mainfrom
saitakarcesme:codex/django-conf-storage-aliases
Sep 23, 2026
Merged

kodiakhq[bot] merged 1 commit into
sbdchd:mainfrom
saitakarcesme:codex/django-conf-storage-aliases

Conversation

@saitakarcesme

Copy link
Copy Markdown

Addresses #401's missing django.conf constants.

Add DEFAULT_STORAGE_ALIAS and STATICFILES_STORAGE_ALIAS and describe their values, together with ENVIRONMENT_VARIABLE, as literal strings. This lets type checkers resolve the same constants that Django exposes at runtime without broadening the change to unrelated settings APIs.

The Pyright regression imports all three constants and checks their exact types. It fails against the original stubs with unknown-import and type assertion errors, then passes with the declarations. The values were also checked against Django 5.2.14 at runtime.

Validation: locked development dependencies on Python 3.13; full mypy and Pyright checks, Ruff lint and formatting, pytest, and ty checks. Ruff was invoked with the tracked file list while preserving the configured exclusions because directory discovery stalled locally.

AI disclosure: this patch, regression test, and description were prepared with OpenAI Codex; the validation commands were executed locally.

@sbdchd

sbdchd commented Sep 23, 2026

Copy link
Copy Markdown
Owner

Thanks!

@kodiakhq
kodiakhq Bot merged commit da91764 into sbdchd:main Sep 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants