Skip to content

Commit

Permalink
Fix RemovedInDjango20Warning on Django 1.11 (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz authored Nov 5, 2019
1 parent 6f58e05 commit 73e1572
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
([PR #348](https://github.com/scoutapp/scout_apm_python/pull/348)).
- Increase core agent socket timeout to reduce reconnections
([PR #247](https://github.com/scoutapp/scout_apm_python/pull/247)).
- Fix the `RemovedInDjango20Warning` for `django.core.urlresolvers` on Django
1.11 ([PR #359](https://github.com/scoutapp/scout_apm_python/pull/359)).

## [2.7.0] 2019-11-03

Expand Down
2 changes: 1 addition & 1 deletion src/scout_apm/django/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
track_request_queue_time,
)

if django.VERSION >= (2, 0):
if django.VERSION >= (1, 11):
from django.urls import get_urlconf
else:
from django.core.urlresolvers import get_urlconf
Expand Down

0 comments on commit 73e1572

Please sign in to comment.