A Django app to add support for redactor.
Project description
This app is part of the AX3 technology developed by Axiacore.
It will allow to use redactor inside the django admin interface.
Quick start
Add “redactor” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'redactor', ]
Include the redactor URLconf in your project urls.py like this:
path('', include('redactor.urls')),
Run python manage.py migrate to create the redactor models.
Copy this redactor library files into a static folder in your proyect:
vendor/redactor/redactor.min.css vendor/redactor/redactor.min.js vendor/redactor/plugins/imagemanager.min.js vendor/redactor/plugins/video.min.js
Add to the admin.py the redactor support for a given model:
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 at the Post model. You can use multiple fields.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for ax3_redactor-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67f2d36b11d590929f5762585e13c995eb16ed46b361db136b4de532668c34e2 |
|
MD5 | 6eb27f35a41bfd34c8ccab909532c03f |
|
BLAKE2b-256 | 9a1915eb0a187f71f3b8dbd7d6cf39524ec73e8b879b4a87e175f305b1c7f4a4 |