From 23b8a2ec1478162f96b7677c2d40194d5dcdd62c Mon Sep 17 00:00:00 2001 From: jdcaballerov Date: Mon, 11 May 2015 17:50:38 -0500 Subject: [PATCH] STATIC_URL changed STATIC_URL changed for static function --- ckeditor/widgets.py | 5 +++-- 1 file 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 \