You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: infrastructure/common-images/cloudharness-django/libraries/cloudharness-django/cloudharness_django/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,9 @@ Quick start
46
46
init_services()
47
47
48
48
# start the kafka event listener
49
-
import cloudharness_django.services.events
49
+
from cloudharness_django.services.events import init_listner # noqa E402
50
+
51
+
init_listner()
50
52
```
51
53
52
54
4. Start the development server and visit http://127.0.0.1:8000/
Copy file name to clipboardExpand all lines: infrastructure/common-images/cloudharness-django/libraries/cloudharness-django/cloudharness_django/services/events.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -79,8 +79,8 @@ def setup_event_service(self):
79
79
pass
80
80
81
81
82
-
# start services
83
-
ifnothasattr(settings, "PROJECT_NAME"):
84
-
raiseKeycloakOIDCNoProjectError("Project name not found, please set PROJECT_NAME in your settings module")
82
+
definit_listener():
83
+
ifnothasattr(settings, "PROJECT_NAME"):
84
+
raiseKeycloakOIDCNoProjectError("Project name not found, please set PROJECT_NAME in your settings module")
0 commit comments