Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make BaseEngine.app_dirname non-optional #2394

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

mthuurne
Copy link
Contributor

@mthuurne mthuurne commented Oct 7, 2024

Evidence that app_dirname should not be None:

  • all of the template engines inside Django set app_dirname to a string
  • BaseEngine.template_dirs passes the value of app_dirname to get_app_template_dirs(), which concatenates it to a Path

Only documentation I could find was this example, which also assigns a string to app_dirname.

Evidence that `app_dirname` should not be `None`:
- all of the template engines inside Django set `app_dirname` to
  a string
- `BaseEngine.template_dirs` passes the value of `app_dirname` to
  `get_app_template_dirs()`, which concatenates it to a `Path`
@sobolevn sobolevn merged commit 3302624 into typeddjango:master Oct 7, 2024
38 checks passed
@mthuurne mthuurne deleted the app_dirname-nonoptional branch October 7, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants