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.
Releasing a new version
Make sure you have an API Token for PyPI: https://pypi.org/help/#apitoken
Make sure you increase the version number and create a git tag:
$ python3 -m pip install --user --upgrade setuptools wheel twine
$ ./release.sh
Made by Axiacore.
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
Built Distribution
File details
Details for the file ax3-redactor-2.0.0.tar.gz
.
File metadata
- Download URL: ax3-redactor-2.0.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd6ee56b8400954f9d633bdc9c91c805a115d3aefd97b6681b08a28347ce7d3f |
|
MD5 | fd86d98753496fdfbf8341541cc9f58e |
|
BLAKE2b-256 | df615a6cdbc4abe016c7ec222ba2624eb02f89f573a24ab9a3c5d135e4bdb11e |
File details
Details for the file ax3_redactor-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: ax3_redactor-2.0.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eea10467effdd9c01cc54f681692302659438e34edfd7a7fd8546c271d244e5 |
|
MD5 | 22f40861ae9cfc3ef47b356039adae56 |
|
BLAKE2b-256 | b61747d7089b86b2e88058fbc9709c622c8ac3200a7b52c3d7db72007b4ef928 |