Registry / web-framework / django-markdownx

django-markdownx

JSON →
library4.0.11pypypiunverified

A comprehensive Markdown editor plugin for Django, providing a side-by-side live preview, image uploads with drag-and-drop, and custom markdown extensions. The latest version is 4.0.9. Release cadence is irregular.

pip install django-markdownx
INSTALL
IMPORT
SIG · DJANGO-MARKDOWNX
D
django-markdownx
web-frameworkpythonv4.0.11
Install
4.1s avg
Import
Disk
86MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v4.0.11 · 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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 86.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.1s · import 0.000s · 88MB
86MB installed
● package 86MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MarkdownxModelField
from markdownx.models import MarkdownxModelField
from markdownx.models import MarkdownxModelField

Basic setup: model with MarkdownxModelField, admin integration, and URL inclusion.

# 1. Add 'markdownx' to INSTALLED_APPS # 2. In models.py: from django.db import models from markdownx.models import MarkdownxModelField class MyModel(models.Model): content = MarkdownxModelField() # 3. In admin.py: from django.contrib import admin from markdownx.admin import MarkdownxModelAdmin from .models import MyModel admin.site.register(MyModel, MarkdownxModelAdmin) # 4. Run migrations, then include markdownx URLs: # path('markdownx/', include('markdownx.urls'))
Debug
Known issues
breakingIn v4.0.0, the model field class was renamed from 'MarkdownxField' to 'MarkdownxModelField'. Existing code using the old import will break.
fix
Replace 'from markdownx.models import MarkdownxField' with 'from markdownx.models import MarkdownxModelField'.
affects: >=4.0.0
gotchaThe 'MARKDOWNX_MARKDOWNIFY_FUNCTION' setting must be a string path to a callable, not a lambda or imported object, due to serialization requirements.
fix
Define a function in a separate module and reference it as 'mymodule.myfunc'.
affects: all
Upgrade
Version history
4.0.11latest on PyPI · released May 23, 2026
Audit
Dependencies
PillowrequiredRequired for image processing (uploaded images)
MarkdownrequiredThe core markdown rendering library
Agent activity
20 hits · last 30 days
node
20
Resources
django-markdownx — pip install django-markdownx · libregistry