Skip to content

ImportError's in part files are intercepted by django #9

@systemsoverload

Description

@systemsoverload

Django will intercept any ImportError's raised in part files and not have any idea how to display which part file the ImportError came from.

Ex.

#01-base.py
from . import not_there  # raises ImportError

The above code will cause django NOT settingsd to display the following

ImportError: Could not import settings 'project.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named not_there

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