aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/compat.py
diff options
context:
space:
mode:
authorTom Christie2011-07-01 17:44:08 +0100
committerTom Christie2011-07-01 17:44:08 +0100
commitf7b7778a79bad4124a6f50bf461f206a6d71fa90 (patch)
tree2bd1b84a90dec5724cda3d89b3a9faf5ca298961 /djangorestframework/compat.py
parentc3babe751a6bab7c7888f173b7853a65ba2ea35e (diff)
parentf67c0651baf1cea65221b4fb7f4df11a54abed90 (diff)
downloaddjango-rest-framework-f7b7778a79bad4124a6f50bf461f206a6d71fa90.tar.bz2
pull in markos changes, minor tweaks to yaml stuff
Diffstat (limited to 'djangorestframework/compat.py')
-rw-r--r--djangorestframework/compat.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/djangorestframework/compat.py b/djangorestframework/compat.py
index 827b4adf..230172c3 100644
--- a/djangorestframework/compat.py
+++ b/djangorestframework/compat.py
@@ -156,6 +156,7 @@ except ImportError:
def head(self, request, *args, **kwargs):
return self.get(request, *args, **kwargs)
+# Markdown is optional
try:
import markdown
import re
@@ -204,3 +205,9 @@ try:
except ImportError:
apply_markdown = None
+
+# Yaml is optional
+try:
+ import yaml
+except ImportError:
+ yaml = None