Skip to content

Commit

Permalink
fix: Import appmap.django during initialization
Browse files Browse the repository at this point in the history
Try to import appmap.django during initialization, to give us a chance
to set up our middleware.
  • Loading branch information
apotterri committed Sep 28, 2021
1 parent d7bacaa commit f62bf4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions appmap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
# not using flask
pass

try:
from . import django
except ImportError:
# not using django
pass

def enabled():
return Env.current.enabled

0 comments on commit f62bf4f

Please sign in to comment.