django-ace
django-ace provides of ACE editor with Django
Decision gist · record as of 2026-08-14
Yes. django-ace is a straightforward, low-friction widget that solves a real problem—adding a proper code editor to Django forms. It has no security vulnerabilities, is actively maintained, and depends only on Django. Install it if you need syntax highlighting and code editing in a Django form or admin interface.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Django to be installed and configured; the widget renders in the browser and requires JavaScript support.
- Low friction install with a single runtime dependency (Django).
- The package is actively maintained with a recent release and no known vulnerabilities.
License · maintenance · safety
BSD-2-Clause (permissive) — BSD-2-Clause is a permissive license that allows commercial and private use with minimal restrictions, requiring only preservation of copyright and license notices.
last release 2026-05-14 (92 days) · last repo commit 2026-05-14 · 148 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 161,459 downloads/mo, #10,630 on PyPI
Alternatives
Verify before relying
pip install django-ace
from django import forms
from django_ace import AceWidget
class EditorForm(forms.Form):
text = forms.CharField(widget=AceWidget(mode='python', theme='twilight'))- Whether the ACE editor version bundled (v1.44.0) includes all current language modes and themes available in upstream ACE.
- Performance characteristics when handling very large code documents or with many simultaneous editor instances.
- Compatibility with modern Content Security Policy (CSP) configurations beyond the useStrictCSP option mentioned.
What it is and what it does
django-ace wraps the ACE code editor as a Django form widget, letting you replace plain text fields with a full-featured code editor in forms and the Django admin. It exposes ACE's core features—syntax highlighting by language mode, color themes, line numbers, word wrap, and code completion—as widget constructor options. The widget integrates cleanly into Django's form system and works in both regular forms and ModelForms.
The package bundles ACE editor resources and handles the JavaScript initialization automatically. You configure the editor by passing options like mode (language), theme, and display settings to the AceWidget constructor. It has been actively maintained to track ACE releases and includes CSS updates for compatibility with Django admin layouts.
Use it for
- Add syntax-highlighted code editing to Django admin for fields storing code snippets, SQL, or configuration.
- Build a custom code review or documentation tool where users edit markdown or code in a form with live syntax highlighting.
- Create a configuration management interface where administrators edit YAML, JSON, or Python code with theme and editor preferences.
- Embed a code editor in a user-facing Django form for a code submission or snippet-sharing application.
- Replace plain textarea fields in technical forms (e.g., CSS, HTML templates) with a proper editor that shows line numbers and indentation guides.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
django-ace is a straightforward, low-friction widget that solves a real problem—adding a proper code editor to Django forms. It has no security vulnerabilities, is actively maintained, and depends only on Django. Install it if you need syntax highlighting and code editing in a Django form or admin interface.
Install
django-ace on PyPI
Before you install
Low friction install with a single runtime dependency (Django). The package is actively maintained with a recent release and no known vulnerabilities.
Requires Django to be installed and configured; the widget renders in the browser and requires JavaScript support.
License in practice
BSD-2-Clause is a permissive license that allows commercial and private use with minimal restrictions, requiring only preservation of copyright and license notices.
Quickstart
pip install django-ace
from django import forms
from django_ace import AceWidget
class EditorForm(forms.Form):
text = forms.CharField(widget=AceWidget(mode='python', theme='twilight'))
Verify before relying
- Whether the ACE editor version bundled (v1.44.0) includes all current language modes and themes available in upstream ACE.
- Performance characteristics when handling very large code documents or with many simultaneous editor instances.
- Compatibility with modern Content Security Policy (CSP) configurations beyond the useStrictCSP option mentioned.
Package facts
| License | BSD-2-Clause permissive |
| Python support | Supports the current Python release >2 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageDjango |
| Maintenance | Actively maintained 92 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 161,459 / month, #10,630 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python |
Evidence: django_ace-1.44.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django form code editor widget”
- django-aceIntegrates the ACE code editor into Django forms as a widget,…
- django-tinymcedjango-tinymce provides a Django form widget and model field that…
- django-jsoneditorProvides a Django form widget for editing JSON data using an embedded…
Give your agent the search over MCP, or paste the wish link into any chat.
More Dynamic Content packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Soupsieve is a CSS selector library designed to work with Beautiful Soup 4 to select, match, and filter HTML and XML elements using modern CSS selectors from CSS level 1 through CSS level 4 specifications.
Install it if you use Beautiful Soup for HTML or XML parsing and want modern CSS selector support.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.
Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.
See also django-json-widget · django-summernote · qtmonaco · streamlit-ace · django-ckeditor · django-navhelper · django-js-asset · django-jsonform · django-tinymce · django-permissionedforms