Skip to content

init should use absolute imports to be compatible with Python 3+ #18

Description

@matthewslaney

From Python 3+, absolute imports are the default. This breaks the behavior of the views init.py since it uses relative imports.

It just needs to change the way it generates the init.py file from:

from myview_views import * #NOQA

to:

from .myview_view import * #NOQA

I'll try to write a pull request for this later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions