Django ckeditor compatibility issue/error
See original GitHub issueI’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:
- Created 11 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
Did you include
(r'^ckeditor/', include('ckeditor.urls')),
in urls.py?I think it also requires no $ at the end.