apps.AppConfig.path

AppConfig.path

Filesystem path to the application directory, e.g. '/usr/lib/python3.4/dist-packages/django/contrib/admin'.

In most cases, Django can automatically detect and set this, but you can also provide an explicit override as a class attribute on your AppConfig subclass. In a few situations this is required; for instance if the app package is a namespace package with multiple paths.

doc_Django
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.