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.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ax3_redactor-1.0.3-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file ax3-redactor-1.0.3.tar.gz.

File metadata

  • Download URL: ax3-redactor-1.0.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.0

File hashes

Hashes for ax3-redactor-1.0.3.tar.gz
Algorithm Hash digest
SHA256 fa9440a0924599f1f12eec0ed5bd48f6df0a79cdd2c8aebbdd42d66e831f6926
MD5 5bbbb980791df3710a5607fbfad95aec
BLAKE2b-256 ab724f9b54658776f1f919cb6a70e936d103512cdeb921f4b7b8d55ba808595c

See more details on using hashes here.

File details

Details for the file ax3_redactor-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: ax3_redactor-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.0

File hashes

Hashes for ax3_redactor-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3380b95df55c9185bf8dbe0198e00f4052523afb81c4cf8d7d6fa4b08d5415e5
MD5 cc60950cba4e73dada6e09e091933310
BLAKE2b-256 1b8dca9f51087ce0d7a6e76ce9b5fb1f8911e9080fa8accb5d1d473361311cd0

See more details on using hashes here.

Supported by

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