A Django app to add support for redactor
Project description
AX3 Redactor
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
vendor/redactor/plugins/widget.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 Distribution
ax3-redactor-1.1.1.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for ax3_redactor-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ea3c3b67d67a31b6567c983169b4698d59810a47d4e3e28c1076ab1d6ae027e |
|
MD5 | d8891511759d96bac8bd5fceb45b112e |
|
BLAKE2b-256 | 7bbf39171c693c74965f014b1c4051310750f1647f7ce4c7014cf63385858363 |