mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
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.
This commit is contained in:
8
tests/apps/namespace_package_base/nsapp/apps.py
Normal file
8
tests/apps/namespace_package_base/nsapp/apps.py
Normal file
@@ -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__))
|
||||
Reference in New Issue
Block a user