Skip to main content

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

  1. Add "redactor" to your INSTALLED_APPS setting like this:
    INSTALLED_APPS = [
        ...
        'redactor',
    ]
  1. Include the redactor URLconf in your project urls.py like this:
    path('', include('redactor.urls')),
  1. Run python manage.py migrate to create the redactor models.

  2. 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
  1. 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


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.0.7.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

ax3_redactor-1.0.7-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page