Skip to content

Commit f62bf4f

Browse files
committed
fix: Import appmap.django during initialization
Try to import appmap.django during initialization, to give us a chance to set up our middleware.
1 parent d7bacaa commit f62bf4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

appmap/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
# not using flask
1111
pass
1212

13+
try:
14+
from . import django
15+
except ImportError:
16+
# not using django
17+
pass
1318

1419
def enabled():
1520
return Env.current.enabled

0 commit comments

Comments
 (0)