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: README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,15 +49,17 @@ make install-packages opts="--extras 'feature1 feature2'"
49
49
50
50
#### Installation
51
51
52
-
1.To make use of the `test_tools` Pytest plugin, install the packages with the `test-tools` extra, e.g. `pip install flagsmith-common[test-tools]`.
52
+
1.`poetry add flagsmith-common`
53
53
54
-
2. Make sure `"common.core"` is in the `INSTALLED_APPS` of your settings module.
54
+
2.`poetry add --G dev flagsmith-common[test-tools]` — this will enable the Pytest fixtures. Skipping this step will make Pytest collection fail due to missing dependencies.
55
+
56
+
3. Make sure `"common.core"` is in the `INSTALLED_APPS` of your settings module.
55
57
This enables the `manage.py flagsmith` commands.
56
58
57
-
3. Add `"common.gunicorn.middleware.RouteLoggerMiddleware"` to `MIDDLEWARE` in your settings module.
59
+
4. Add `"common.gunicorn.middleware.RouteLoggerMiddleware"` to `MIDDLEWARE` in your settings module.
58
60
This enables the `route` label for Prometheus HTTP metrics.
59
61
60
-
4. To enable the `/metrics` endpoint, set the `PROMETHEUS_ENABLED` setting to `True`.
62
+
5. To enable the `/metrics` endpoint, set the `PROMETHEUS_ENABLED` setting to `True`.
0 commit comments