Qitian Inc. Django UEditor plugins. For quick use in Django Admin Panel
Project description
DJANGO UEditor Plugins
This project provide the ability for easy use UEditor in django admin and other pages in django.
Many code is from other project, such as: django-ckeditor and so on.
Required
- Install or add django-ueditor to your environment.
pip install django-ueditor
- add
ueditor
to yourINSTALLED_APPS
setting. - add UEditor URL include to your project's
urls.py
file:re_path(r'^ueditor/', include('ueditor.urls')),
Usage
Field
The quickest way to add rich text editing capabilities to your models is to use the UEditorField
model field type.
For example:
from django.db import models
from ueditor import UEditorField
class Post(models.Model):
content = UEditorField('内容')
That's all you need to do, enjoy the plugins and feel free to contact me when you has any problem with it.
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
django-ueditor-1.0.2.tar.gz
(12.2 MB
view details)
Built Distribution
File details
Details for the file django-ueditor-1.0.2.tar.gz
.
File metadata
- Download URL: django-ueditor-1.0.2.tar.gz
- Upload date:
- Size: 12.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b07697817820884873a3871edbe430b452e76b0b003d069e751aecfd0d4887ad |
|
MD5 | e1aca1ba7abc37fcbbe875ead072d4f7 |
|
BLAKE2b-256 | 4c50f6c1022654fad7abc40f8eb59d2f2245305b9e4218d4999aa1780ab37f72 |
File details
Details for the file django_ueditor-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: django_ueditor-1.0.2-py3-none-any.whl
- Upload date:
- Size: 12.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 007e6258e593bde9df1fa738780c8b5631edb690f7ce9f03568209f8136ed86b |
|
MD5 | 1235041686280117f1770f3bfaa060a6 |
|
BLAKE2b-256 | 817ba4c6487b7c4d4f8f292f41f1d41d68ba5fb526dbdc572fecbeef5fa3918e |