A Django app to add support for the redactor editor
Project description
AX3 Redactor
This app is part of the AX3 technology developed by Axiacore.
It allows you to use Redactor within the Django admin interface.
Quick Start
- Add
"redactor"to yourINSTALLED_APPSsetting as follows:
INSTALLED_APPS = [
...
'redactor',
]
- Include the Redactor URL configuration in your project's
urls.py:
path('', include('redactor.urls')),
-
Run
python manage.py migrateto create the Redactor models. -
Copy your Redactor library files into the
staticfolder in your project:
vendor/redactor/redactor.min.css
vendor/redactor/redactor.min.js
vendor/redactor/plugins/imagemanager.min.js
vendor/redactor/plugins/video.min.js
vendor/redactor/plugins/widget.min.js
- Add Redactor support to your model in
admin.py:
from django.contrib import admin
from redactor.mixins import RedactorMixin
from .models import Post
@admin.register(Post)
class PostAdmin(RedactorMixin, admin.ModelAdmin):
...
redactor_fields = ['content']
...
content is a TextField attribute in the Post model.
You can specify multiple fields if needed.
Releasing a New Version
Make sure you have an API token for PyPI: https://pypi.org/help/#apitoken
Increase the version number at pyproject.toml and create a Git tag:
uv run python -m build
uv run python -m twine upload dist/*
Built at axiacore.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ax3_redactor-3.0.2.tar.gz.
File metadata
- Download URL: ax3_redactor-3.0.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc49027d4e458ca632e58fc0775965c8ed330bcf7cef872247ee0fa608f70d07
|
|
| MD5 |
456d6237457c453679069fbee91b8bfc
|
|
| BLAKE2b-256 |
ebc1bc47bb146898d2b58eaaddb1fce7fc0ffea1bd745a345bbc026facfabdcf
|
File details
Details for the file ax3_redactor-3.0.2-py3-none-any.whl.
File metadata
- Download URL: ax3_redactor-3.0.2-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d21b2577da91f1084345b4890f8a10bfae8aaea5766eeb55a0c85516caf1cba
|
|
| MD5 |
651d857118c80651ac984b29a397a63e
|
|
| BLAKE2b-256 |
8db9451b84dbab3bb2f42a65b0f02a533e035c9b10ecd4eb34d02bf9d4123d49
|