This app is part of the AX3 technology developed by Axiacore.
It allows you to use Redactor within the Django admin interface.
- 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.
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:
rm -rf dist/
uv run python -m build
uv run python -m twine upload dist/*Built at axiacore.