diff --git a/contrib/opencensus-ext-django/CHANGELOG.md b/contrib/opencensus-ext-django/CHANGELOG.md index 28660b13f..f4e737d80 100644 --- a/contrib/opencensus-ext-django/CHANGELOG.md +++ b/contrib/opencensus-ext-django/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased - Make ProbabilitySampler default - Remove support for Django < 1.11. +- Allow installing with Django 2.0 and later. ## 0.3.0 Released 2019-04-24 diff --git a/contrib/opencensus-ext-django/README.rst b/contrib/opencensus-ext-django/README.rst index 9fe978fc6..35f9f832f 100644 --- a/contrib/opencensus-ext-django/README.rst +++ b/contrib/opencensus-ext-django/README.rst @@ -17,11 +17,11 @@ Usage ----- For tracing Django requests, you will need to add the following line to -the ``MIDDLEWARE_CLASSES`` section in the Django ``settings.py`` file. +the ``MIDDLEWARE`` section in the Django ``settings.py`` file. .. code:: python - MIDDLEWARE_CLASSES = [ + MIDDLEWARE = [ ... 'opencensus.ext.django.middleware.OpencensusMiddleware', ] diff --git a/contrib/opencensus-ext-django/setup.py b/contrib/opencensus-ext-django/setup.py index b89f3319c..0062f846a 100644 --- a/contrib/opencensus-ext-django/setup.py +++ b/contrib/opencensus-ext-django/setup.py @@ -26,6 +26,10 @@ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', + 'Framework :: Django', + 'Framework :: Django :: 1.11', + 'Framework :: Django :: 2.1', + 'Framework :: Django :: 2.2', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', @@ -39,7 +43,7 @@ include_package_data=True, long_description=open('README.rst').read(), install_requires=[ - 'Django >= 1.11.0, < 1.12.0', + 'Django >= 1.11', 'opencensus >= 0.7.dev0, < 1.0.0', ], extras_require={}, diff --git a/docs/trace/usage.rst b/docs/trace/usage.rst index 0c0db69b2..edd53d4f1 100644 --- a/docs/trace/usage.rst +++ b/docs/trace/usage.rst @@ -208,11 +208,11 @@ Django ~~~~~~ For tracing Django requests, you will need to add the following line to -the ``MIDDLEWARE_CLASSES`` section in the Django ``settings.py`` file. +the ``MIDDLEWARE`` section in the Django ``settings.py`` file. .. code:: python - MIDDLEWARE_CLASSES = [ + MIDDLEWARE = [ ... 'opencensus.trace.ext.django.middleware.OpencensusMiddleware', ]