summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjdcaballerov <jd_caballero@hotmail.com>2015-05-11 22:50:38 (GMT)
committerjdcaballerov <jd_caballero@hotmail.com>2015-05-11 22:50:38 (GMT)
commit23b8a2ec1478162f96b7677c2d40194d5dcdd62c (patch)
tree7e6bf3d06f18f3c6c291af7ddd7c1e81047e6d8e
parentc5f531d31f032d097a3fdfc07a2fd7933e0ee136 (diff)
downloaddjango-ckeditor-23b8a2ec1478162f96b7677c2d40194d5dcdd62c.zip
django-ckeditor-23b8a2ec1478162f96b7677c2d40194d5dcdd62c.tar.gz
django-ckeditor-23b8a2ec1478162f96b7677c2d40194d5dcdd62c.tar.bz2
STATIC_URL changed
STATIC_URL changed for static function
-rw-r--r--ckeditor/widgets.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ckeditor/widgets.py b/ckeditor/widgets.py
index efe0ef1..5c9f1d6 100644
--- a/ckeditor/widgets.py
+++ b/ckeditor/widgets.py
@@ -1,6 +1,7 @@
from django import forms
from django.conf import settings
from django.core.urlresolvers import reverse
+from django.contrib.staticfiles.templatetags.staticfiles import static
from django.template.loader import render_to_string
from django.utils.safestring import mark_safe
from django.utils.html import conditional_escape
@@ -59,8 +60,8 @@ class CKEditorWidget(forms.Textarea):
js += (jquery_url, )
try:
js += (
- settings.STATIC_URL + 'ckeditor/ckeditor/ckeditor.js',
- settings.STATIC_URL + 'ckeditor/ckeditor-init.js',
+ static('ckeditor/ckeditor/ckeditor.js'),
+ static('ckeditor/ckeditor-init.js'),
)
except AttributeError:
raise ImproperlyConfigured("django-ckeditor requires \