Install & Compatibility
Where this runs
tested against v1.44.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.642s · 78MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.6s · import 0.572s · 78MB
77MB installed
● package 77MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
AceWidget
✓ from django_ace import AceWidget
✗ from ace import AceWidget
The package is installed as django-ace but the module is django_ace.
AceMixin
✓ from django_ace import AceMixin
Basic usage: use AceWidget as a form field widget. Set width/height to None to use CSS defaults.
from django_ace import AceWidget
from django import forms
# In your form class:
code = forms.CharField(widget=AceWidget(
mode='python',
theme='monokai',
width=None,
height=None,
wordwrap=True
))
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'django_ace'
Installed package as django-ace but tried to import as django_ace incorrectly.
fixEnsure you have installed django-ace (pip install django-ace) and use correct import: 'from django_ace import AceWidget'.
AttributeError: 'AceWidget' object has no attribute 'render'
Using an older version where AceWidget might not be compatible with Django version or widget API changed.
fixUpgrade django-ace: pip install --upgrade django-ace
The editor shows a blank box with no text area
Width and height not set (defaulted to None) and no CSS providing dimensions.
fixExplicitly set widget dimensions: AceWidget(width='500px', height='300px')
Upgrade
Version history
1.44.0latest on PyPI · released May 14, 2026
Audit
Dependencies
DjangorequiredRequired for form widget integration