Skip to content

OEP-49 remove deprecated advice #695

Closed
@deborahgu

Description

@deborahgu

OEP 0049 has a section saying

The __init__.py file should contain a line for the default_app_config for the app.

That functionality is deprecated and removed from django (4.1 release notes). The definition has already been partially removed from our various apps.

We should update the documentation to remove this section.

The init.py file should contain a line for the default_app_config for the app. This default_app_config should point to the AppConfig located in app_name/apps.py. It may also contain small app details such as a version. However, unlike many packages, init.py should not be used to as the way to export the app's public methods. These should be exported using api.py (and thus imported as from path.to.app.api import public_function). See api.py below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueA good task for a newcomer to start withhelp wantedReady to be picked up by anyone in the community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions