mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-03 20:58:12 +08:00
DOCS: Correct health check import in examples.rst (#110)
* Correct health check import in examples.rst * Update monitor.rst --------- Co-authored-by: Stan Triepels <1939656+GDay@users.noreply.github.com>
This commit is contained in:
co-authored by
Stan Triepels
parent
aa79a6e6b3
commit
960f72a1d0
+1
-1
@@ -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:
|
# All django stuff has to come after the setup:
|
||||||
django.setup()
|
django.setup()
|
||||||
|
|
||||||
from django_q.monitor import Stat
|
from django_q.status import Stat
|
||||||
from django_q.conf import Conf
|
from django_q.conf import Conf
|
||||||
|
|
||||||
# Set host and port settings
|
# Set host and port settings
|
||||||
|
|||||||
+1
-1
@@ -111,7 +111,7 @@ You can check the status of your clusters straight from your code with the :clas
|
|||||||
|
|
||||||
.. code:: python
|
.. code:: python
|
||||||
|
|
||||||
from django_q.monitor import Stat
|
from django_q.status import Stat
|
||||||
|
|
||||||
for stat in Stat.get_all():
|
for stat in Stat.get_all():
|
||||||
print(stat.cluster_id, stat.status)
|
print(stat.cluster_id, stat.status)
|
||||||
|
|||||||
Reference in New Issue
Block a user