mirror of
https://github.com/django/django.git
synced 2024-12-26 19:16:11 +00:00
966b186981
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.
9 lines
174 B
Python
9 lines
174 B
Python
import os
|
|
|
|
from django.apps import AppConfig
|
|
from django.utils._os import upath
|
|
|
|
class NSAppConfig(AppConfig):
|
|
name = 'nsapp'
|
|
path = upath(os.path.dirname(__file__))
|