+try:
+ from urllib.error import HTTPError, URLError
+ from urllib.parse import parse_qsl, urlencode, urlparse, urlsplit, urlunsplit
+ from urllib.request import urlopen
+except ImportError:
+ from urllib import urlencode
+ from urllib2 import HTTPError, URLError, urlopen
+ from urlparse import parse_qsl, urlparse, urlsplit, urlunsplit
+from functools import wraps
+
+from django import VERSION
+from django.utils.decorators import available_attrs
+from django.views.decorators.debug import sensitive_post_parameters
+from django.views.decorators.cache import cache_control
+from django.utils.cache import patch_cache_control
+from django.views.decorators.csrf import csrf_protect