diff --git a/docs/examples.rst b/docs/examples.rst index daf52c4..7fafff9 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -328,7 +328,7 @@ Requires cache to be enabled. Save file in your Django project's root directory # All django stuff has to come after the setup: django.setup() - from django_q.monitor import Stat + from django_q.status import Stat from django_q.conf import Conf # Set host and port settings diff --git a/docs/monitor.rst b/docs/monitor.rst index d142195..5d4939e 100644 --- a/docs/monitor.rst +++ b/docs/monitor.rst @@ -111,7 +111,7 @@ You can check the status of your clusters straight from your code with the :clas .. code:: python - from django_q.monitor import Stat + from django_q.status import Stat for stat in Stat.get_all(): print(stat.cluster_id, stat.status)