Skip to content

Conversation

@jeremystretch
Copy link
Member

@jeremystretch jeremystretch commented Jan 23, 2023

Fixes: #11267

  • Employ module_has_submodule() to check for presence of plugin URL patterns
  • Remove default paths from PluginConfig class
  • If plugin resource path has not been explicitly set, use find_spec() to check default path before importing

@jeremystretch jeremystretch marked this pull request as ready for review January 24, 2023 22:13
@jsenecal jsenecal self-requested a review January 27, 2023 14:59
Copy link
Contributor

@jsenecal jsenecal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, nice reuse of django builtins

@jeremystretch jeremystretch merged commit fbc9fea into develop Jan 27, 2023
@jeremystretch jeremystretch deleted the 11267-plugin-imports branch January 27, 2023 21:44
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ImportErrors inside plugins are currently ignored → add logging

3 participants