question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Django ckeditor compatibility issue/error

See original GitHub issue

I’m getting the following error if I enable the django ckeditor widget with my formfield override in the admin.py

However it should be noted that the regular override using the Textarea widget works fine.

formfield_overrides = {
    models.CharField: {'widget': TextInput(attrs={'size':'200'})},
    models.TextField: {'widget': Textarea(attrs={'rows':100, 'cols':100})},
}

THE ERROR DEBUG INFO:

Error during template rendering

In template /, , , /lib/python2.7/django/contrib/admin/templates/admin/includes/fieldset.html, error at line 19 Reverse for ‘ckeditor_upload’ with arguments ‘()’ and keyword arguments ‘{}’ not found. 9 {% for field in line %} 10 <div{% if not line.fields|length_is:‘1’ %} class=“field-box{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% if not field.is_readonly and field.errors %} errors{% endif %}”{% endif %}> 11 {% if not line.fields|length_is:‘1’ and not field.is_readonly %}{{ field.errors }}{% endif %} 12 {% if field.is_checkbox %} 13 {{ field.field }}{{ field.label_tag }} 14 {% else %} 15 {{ field.label_tag }} 16 {% if field.is_readonly %} 17

{{ field.contents }}

18 {% else %} 19 {{ field.field }} 20 {% endif %} 21 {% endif %} 22 {% if field.field.help_text %} 23

{{ field.field.help_text|safe }}

24 {% endif %} 25 </div> 26 {% endfor %} 27 </div> 28 {% endfor %} 29 </fieldset>

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
zlorfcommented, Feb 22, 2013

Did you include (r'^ckeditor/', include('ckeditor.urls')), in urls.py?

0reactions
zlorfcommented, Feb 22, 2013

I think it also requires no $ at the end.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django CKEditor 6.5.1 documentation
5.6.0¶. Django 2.1 compatibility, minimal supported Django version is 1.11 LTS; Option to set custom django file backend for CKEditor uploader app. 5.5.0¶....
Read more >
ckeditor django no error but don't show editor - Stack Overflow
I trial make editor for my blog django when used django_summernote work good but when ckeditor django no error but don't show editor...
Read more >
django-ckeditor-updated 4.4.4 - PyPI
Django admin CKEditor integration. ... on PyPi as https://pypi.python.org/pypi/django-ckeditor - still old release not compatible with newer Django versions
Read more >
Installing Skins - CKEditor 4 Documentation
Learn how to install, integrate and configure CKEditor 4. More complex aspects, like creating plugins, widgets and skins are explained here, too.
Read more >
bsd - Can I use django-ckeditor in commercial projects without ...
CKEditor is available as a commercial license at https://ckeditor.com/ or a choice of GPL/LGPL/MPL at https://github.com/ckeditor.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found