From e1a0f3d5303a157d5e3dcc9e20b894e5efa69d38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Dalfors?= Date: Tue, 25 Jun 2019 10:13:37 +0200 Subject: [PATCH 1/2] require django<2 due to middleware changes as of django 2.0 --- example/requirements.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 example/requirements.txt diff --git a/example/requirements.txt b/example/requirements.txt new file mode 100644 index 0000000..cbf4b84 --- /dev/null +++ b/example/requirements.txt @@ -0,0 +1,2 @@ +Django<2 +django_opentracing From 49ced059beef0f34bbc4b6c14ff7a79f9708046a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Dalfors?= Date: Tue, 25 Jun 2019 10:16:51 +0200 Subject: [PATCH 2/2] add note to install dependencies --- example/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/example/README.md b/example/README.md index 272b9e6..e2c1369 100644 --- a/example/README.md +++ b/example/README.md @@ -2,8 +2,13 @@ This is an example of a Django site with tracing implemented using the django_opentracing package. To run the example, make sure you've installed package `opentracing` and the `Tracer` of your choice (Jaeger, LightStep, etc). -Navigate to this directory and then run: +Navigate to this directory and install requirements: +``` +> pip install -r requirements.txt +``` + +Run the server: ``` > python manage.py runserver 8000 ```