We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 601a68a commit 22fdda8Copy full SHA for 22fdda8
ckeditor/views.py
@@ -4,13 +4,20 @@
4
from django.http import HttpResponse
5
from django.shortcuts import render_to_response
6
from django.template import RequestContext
7
-from django.views.decorators.csrf import csrf_exempt
8
9
try:
10
from PIL import Image, ImageOps
11
except ImportError:
12
import Image, ImageOps
13
-
+
+try:
14
+ from django.views.decorators.csrf import csrf_exempt
15
+except ImportError:
16
+ # monkey patch this with a dummy decorator which just returns the same function
17
+ # (for compatability with pre-1.1 Djangos)
18
+ def csrf_exempt(fn):
19
+ return fn
20
21
THUMBNAIL_SIZE = (75, 75)
22
23
def exists(name):
0 commit comments