AppRegistryNotReady error when "import" is in configuration.py #1527
-
I am trying to follow this example add custom pollers to Validity plugin and I keep getting the error below during
Docker build error
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm guessing that |
Beta Was this translation helpful? Give feedback.
I'm guessing that
ScrapliPoller
is a class that is in some way inheriting from the Django model class. In Django you can't import model classes before the system is initialised. This includes thesettings.py
(or in this caseconfiguration.py
),app.py
,wsgi.py
and so on.I'm not sure how this iss supposed to work in that plugin, but you probably need to use the full dotted class name as a string instead of the imported class.