Changes between Initial Version and Version 1 of Ticket #37067


Ignore:
Timestamp:
Apr 25, 2026, 5:05:48 PM (2 hours ago)
Author:
Mike Edmunds
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37067 – Description

    initial v1  
    2727As [https://github.com/django/django/blob/8ee73415270a1a54daaec9bb529ad82c6f7a6d4c/django/utils/deprecation.py#L13-L18 currently implemented], `django_file_prefixes()` returns the directory where Django is installed (in a tuple). E.g., `("/venv/site-packages/django",)`.
    2828
    29 If `some_django_feature()` is called from a (hypothetical) `django_goodies` package installed in `/venv/site-packages/django_goodies/__init__.py`, the warning's `skip_file_prefixes` will skip it too. (That filename `str.startswith()` `django_file_prefixes()`.) The resulting warning will point to the first stack frame outside `django_goodies`, which may be completely disconnected from the deprecated feature usage.
     29If `some_django_feature()` is called from a (hypothetical) `django_goodies` package installed in `/venv/site-packages/django_goodies/__init__.py`, the warning will skip it too: that filename [https://docs.python.org/3/library/stdtypes.html#str.startswith startswith] the django_file_prefixes. The resulting warning will point to the first stack frame outside `django_goodies`, which may be completely disconnected from the deprecated feature usage.
Back to Top