diff options
| author | Carl Meyer <carl@oddbird.net> | 2014-01-25 19:37:05 -0700 |
|---|---|---|
| committer | Carl Meyer <carl@oddbird.net> | 2014-01-25 19:37:05 -0700 |
| commit | 966b186981d619d964152ebcda1bd844ec5f6c8c (patch) | |
| tree | 8aae6d9114bb2d57cfda5c301194dfb1741b2c81 /tests/apps/namespace_package_base/nsapp | |
| parent | ee4b806a851f6f7ad121899ed246dbcd7353ca75 (diff) | |
Fixed #17304 -- Allow single-path and configured-path namespace packages as apps.
Also document the conditions under which a namespace package may or may not be
a Django app, and raise a clearer error message in those cases where it may not
be.
Thanks Aymeric for review and consultation.
Diffstat (limited to 'tests/apps/namespace_package_base/nsapp')
| -rw-r--r-- | tests/apps/namespace_package_base/nsapp/apps.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/apps/namespace_package_base/nsapp/apps.py b/tests/apps/namespace_package_base/nsapp/apps.py new file mode 100644 index 0000000000..9949054b31 --- /dev/null +++ b/tests/apps/namespace_package_base/nsapp/apps.py @@ -0,0 +1,8 @@ +import os + +from django.apps import AppConfig +from django.utils._os import upath + +class NSAppConfig(AppConfig): + name = 'nsapp' + path = upath(os.path.dirname(__file__)) |
