diff options
| author | Carl Meyer <carl@oddbird.net> | 2014-01-27 13:28:53 -0700 |
|---|---|---|
| committer | Carl Meyer <carl@oddbird.net> | 2014-01-27 15:34:22 -0700 |
| commit | 88a2d39159872f6a7fced1bae591550650fd7f38 (patch) | |
| tree | 0d7ee946c71354f8ea6095b549d926734b2e5579 /tests/admin_scripts | |
| parent | b87bc461c89f2006f0b27c7240fb488fac32bed1 (diff) | |
Fixed #21874 -- Require Django applications to have a filesystem path.
Wherever possible this filesystem path is derived automatically from the app
module's ``__path__`` and ``__file__`` attributes (this avoids any
backwards-compatibility problems).
AppConfig allows specifying an app's filesystem location explicitly, which
overrides all autodetection based on ``__path__`` and ``__file__``. This
permits Django to support any type of module as an app (namespace packages,
fake modules, modules loaded by other hypothetical non-filesystem module
loaders), as long as the app is configured with an explicit filesystem path.
Thanks Aymeric for review and discussion.
Diffstat (limited to 'tests/admin_scripts')
0 files changed, 0 insertions, 0 deletions
