Commits

Tatsuo Ikeda  committed 4434aeb

ignore django

  • Participants
  • Parent commits 3bf751f

Comments (0)

Files changed (2)

 *.pyo
 *.swp
 *.tmp
-
+tags
 ### setup.py
 build
 dist
 old_import = __builtin__.__import__
 
 def pudebug():
-    # monkey patch
-    monkey_urwid()
+    try:
+        import django
+        # monkey patch
+        monkey_urwid()
+    except ImportError:
+        pass
     # start pudb
     set_trace()