summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Maliński <riklaunim@gmail.com>2015-06-07 17:25:06 (GMT)
committerPiotr Maliński <riklaunim@gmail.com>2015-06-07 17:25:06 (GMT)
commit84798109a7707e43220b2799f9ea0375123ae890 (patch)
treee3bf6866b704900aa0fafc869dfdf28d3d8a84d3
parentbb3588312aa21a41580ca31a7b403f03ec452c36 (diff)
downloaddjango-ckeditor-84798109a7707e43220b2799f9ea0375123ae890.zip
django-ckeditor-84798109a7707e43220b2799f9ea0375123ae890.tar.gz
django-ckeditor-84798109a7707e43220b2799f9ea0375123ae890.tar.bz2
Revert "STATIC_URL changed "
This reverts commit 23b8a2ec1478162f96b7677c2d40194d5dcdd62c.
-rw-r--r--ckeditor/widgets.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/ckeditor/widgets.py b/ckeditor/widgets.py
index 5c9f1d6..efe0ef1 100644
--- a/ckeditor/widgets.py
+++ b/ckeditor/widgets.py
@@ -1,7 +1,6 @@
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
@@ -60,8 +59,8 @@ class CKEditorWidget(forms.Textarea):
js += (jquery_url, )
try:
js += (
- static('ckeditor/ckeditor/ckeditor.js'),
- static('ckeditor/ckeditor-init.js'),
+ settings.STATIC_URL + 'ckeditor/ckeditor/ckeditor.js',
+ settings.STATIC_URL + 'ckeditor/ckeditor-init.js',
)
except AttributeError:
raise ImproperlyConfigured("django-ckeditor requires \