diff options
| author | Fashad Ahmed <fashad.ahmed20@gmail.com> | 2026-04-28 22:38:36 +0200 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-04-29 13:47:49 -0400 |
| commit | 60a9c70496e5d7b971928ce3da5b47c8836a4def (patch) | |
| tree | e71929c9bb10385c026625b4adbae8f5a23dea12 /django | |
| parent | 61941b6fc172933f425e8ba76bab444ab9b313e4 (diff) | |
Fixed #37067 -- Added trailing slash in django_file_prefixes().
Ensure skip_file_prefixes does not match sibling packages like django*.
Bug in f42b89f1bf49a5b89ed852b60f79342320a81c5e
and 34bd3ed944bf38792c631b55e581963d44d52284.
Diffstat (limited to 'django')
| -rw-r--r-- | django/utils/deprecation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/deprecation.py b/django/utils/deprecation.py index 89c9f71e55..f856582454 100644 --- a/django/utils/deprecation.py +++ b/django/utils/deprecation.py @@ -16,7 +16,7 @@ def django_file_prefixes(): file = getattr(django, "__file__", None) if file is None: return () - return (os.path.dirname(file),) + return (os.path.join(os.path.dirname(file), ""),) class RemovedInNextVersionWarning(DeprecationWarning): |
