{ "info": { "author": "Waket Zheng", "author_email": "waketzheng@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "Framework :: Django :: 2.2", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP" ], "description": "# django-kindeditor\n\n[![image](https://secure.travis-ci.org/waketzheng/django-kindeditor.svg?branch=master)](https://pypi.org/project/django-kindeditor/)\n[![image](https://img.shields.io/pypi/v/django-kindeditor.svg)](https://pypi.org/project/django-kindeditor/)\n[![image](https://img.shields.io/pypi/djversions/django-kindeditor.svg)](https://pypi.org/project/django-kindeditor/)\n[![image](https://img.shields.io/pypi/pyversions/django-kindeditor.svg)](https://pypi.org/project/django-kineditor/)\n[![image](https://img.shields.io/pypi/l/django-kindeditor.svg)](https://pypi.org/project/django-kindeditor/)\n[![image](https://img.shields.io/codecov/c/github/waketzheng/django-kindeditor/master.svg)](https://codecov.io/github/waketzheng/django-kindeditor?branch=master)\n[![image](https://img.shields.io/badge/code%20style-pep8-green.svg)](https://www.python.org/dev/peps/pep-0008/)\n\n\nThis repo is to make it easy to use KindEditor as a RichTextEditor when using django.\n\nYou can visit this site to see the editor result:\nhttp://kindeditor.org/\n\n[Chinese[\u4e2d\u6587\u7248]](https://github.com/waketzheng/django-kindeditor/blob/master/zh-hans-README.md)\n\n## Requires\n\n- Django 2.0+\n- Python 3.6+\n\n## Usage\n\n- Install\n\n```bash\npip install django-kindeditor\n```\n\n- Add `kindeditor` to INSTALL_APPS in settings, and define static, media\n\n```py\nINSTALLED_APPS = [\n ...\n 'kindeditor',\n]\n...\n\nSTATIC_URL = '/static/'\nSTATIC_ROOT = os.path.join(BASE_DIR, 'static') # your static files path\nMEDIA_URL = '/media/'\nMEDIA_ROOT = os.path.join(BASE_DIR, 'media') # your media files path\n```\n\n- Insert \"kindeditor/\" path and static, media paths to urlpatterns in urls.py\n\n```py\nfrom django.conf import settings\n\nif settings.DEBUG:\n # static and media\n from django.conf.urls.static import static\n from django.contrib.staticfiles.urls import staticfiles_urlpatterns\n\n urlpatterns.extend(\n staticfiles_urlpatterns()\n + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)\n )\nurlpatterns = [\n ...\n path(\"kindeditor/\", include(\"kindeditor.urls\")),\n]\n\nif settings.DEBUG:\n # static and media\n from django.conf.urls.static import static\n from django.contrib.staticfiles.urls import staticfiles_urlpatterns\n\n urlpatterns.extend(\n staticfiles_urlpatterns()\n + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)\n )\n```\n\n## Example\n\n```py\n# models.py\nfrom kindeditor import RichTextField\n\nclass Article(models.Model):\n title = models.CharField(max_length=80)\n content = RichTextField()\n\n# settings.py\nKINDEDITOR_UPLOAD_PERMISSION = 'admin'\n\n# admin.py\nfrom django.contrib import admin\nfrom kindeditor import EditorAdmin\nfrom .models import Article\nadmin.site.register(Article, EditorAdmin)\n```\n\n## Demo\n\n1. Clone the repo to local\n\n ```bash\n git clone https://github.com/waketzheng/django-kindeditor\n ```\n\n2. Create a virtual environment and install required packages\n\n ```bash\n pipenv install --dev\n ```\n\n3. Activate it\n\n ```bash\n pipenv shell\n ```\n\n4. Migrate and compile translation file\n\n ```bash\n ./manage.py migrate\n ./manage.py compilemessages\n ```\n\n5. Runserver\n\n ```bash\n ./manage.py runserver\n ```\n\n6. View the url and you will see the demo at webbrowser.\n\n http://127.0.0.1:8000\n\n## Development\n\n1. Test Coverage\n\n ```bash\n coverage run ./manage.py test\n ```\n\n2. Test multiple django versions\n\n ```bash\n tox\n ```\n\n3. Show code quality\n\n ```bash\n coverage xml\n python-codacy-coverage -r coverage.xml\n ```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/waketzheng/django-kindeditor", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-kindeditor", "package_url": "https://pypi.org/project/django-kindeditor/", "platform": "", "project_url": "https://pypi.org/project/django-kindeditor/", "project_urls": { "Homepage": "https://github.com/waketzheng/django-kindeditor" }, "release_url": "https://pypi.org/project/django-kindeditor/0.3.0/", "requires_dist": [ "django (>=2.0)", "pillow (>=5.3)" ], "requires_python": ">=3.6", "summary": "Django admin KindEditor integration.", "version": "0.3.0" }, "last_serial": 5747874, "releases": { "0.0.4": [ { "comment_text": "", "digests": { "md5": "e60b56c716cf7efe58ae95b89788b979", "sha256": "417beeca771c92781f0cfac838b9c2dc874b0434eec73102d5cc7b4ce814a05b" }, "downloads": -1, "filename": "django_kindeditor-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e60b56c716cf7efe58ae95b89788b979", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6", "size": 590715, "upload_time": "2018-12-01T03:49:49", "url": "https://files.pythonhosted.org/packages/9b/b2/ddf193cec48769f20111b1cc2b601fc329d3109a9f7c8b90251c5f7ae4d1/django_kindeditor-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d83096637b029fd0132e05532be0f04b", "sha256": "ecd762766a77a8bee0601d5fa9a9e77c8a80f911c40658a3352b10accafe4ec6" }, "downloads": -1, "filename": "django-kindeditor-0.0.4.tar.gz", "has_sig": false, "md5_digest": "d83096637b029fd0132e05532be0f04b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 515848, "upload_time": "2018-12-01T03:49:53", "url": "https://files.pythonhosted.org/packages/dc/00/7a42c6f9f3a647d89d455ad5d4bc639ddaaf0751ec0474c44ac1361cbd84/django-kindeditor-0.0.4.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "1fd84bd9c4f067dd636abd7b511adbb9", "sha256": "41734cce5e6e2c4523912bb4f2bd91bf8ff8a7c8744096488ffabad1425aba35" }, "downloads": -1, "filename": "django_kindeditor-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1fd84bd9c4f067dd636abd7b511adbb9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6", "size": 590866, "upload_time": "2019-01-02T10:00:40", "url": "https://files.pythonhosted.org/packages/9a/3e/17fdc1868ba8e34e561b59e12ec5d8bc26976aa8cb649af33f81eab1f060/django_kindeditor-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8a12ce28f6f899d142e7cfa7114e50f4", "sha256": "d4786843f5c041ee53345e737a6653798968d56d21c7016cf49cfe302b4f208e" }, "downloads": -1, "filename": "django-kindeditor-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8a12ce28f6f899d142e7cfa7114e50f4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 516280, "upload_time": "2019-01-02T10:00:45", "url": "https://files.pythonhosted.org/packages/d8/6c/e382f4debc1bf55d84454177f6db83b0b64e4569abe82be8f5e2d97674d9/django-kindeditor-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "befe436c47820d4a78125c9fdaa49f1d", "sha256": "ba35ea4cad6ffd3a59b7f3a0469c10f5710cb543fa8186e1ae3f9086d005e7c5" }, "downloads": -1, "filename": "django_kindeditor-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "befe436c47820d4a78125c9fdaa49f1d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6", "size": 590888, "upload_time": "2019-01-02T12:34:05", "url": "https://files.pythonhosted.org/packages/46/b7/5cc92bd8685be347bcdc189ba88eb8e69712174db32deff1849962e2bc12/django_kindeditor-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6844ec1f33629c78a59bc44b504aa7e2", "sha256": "80d8a4685b35d7c039e94e7ea3b6f82d0238231a650e9ded9bd9ece00ce4693b" }, "downloads": -1, "filename": "django-kindeditor-0.1.1.tar.gz", "has_sig": false, "md5_digest": "6844ec1f33629c78a59bc44b504aa7e2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 516319, "upload_time": "2019-01-02T12:34:08", "url": "https://files.pythonhosted.org/packages/55/d3/0b6637f766e2e6119a22ee041672b514318dac44714071a10a3764ef4884/django-kindeditor-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "802a9de7f7176936361feac31c0a9841", "sha256": "17636206020447fb436eed2a2491a8780589f80aa7b1e66dcddfbbd1ea896212" }, "downloads": -1, "filename": "django_kindeditor-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "802a9de7f7176936361feac31c0a9841", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6", "size": 590938, "upload_time": "2019-07-05T12:25:44", "url": "https://files.pythonhosted.org/packages/61/c8/126fabf0d8bf75771ac546c9ea1fc2111d0db68d1f061d81cbdbc5958ad5/django_kindeditor-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dd61ff21148e08c92a270c3f3d08afb8", "sha256": "a7b3fb615623e4f1afb52428a4a3bcddb5118a999fff4abebff0f59adf45f2e7" }, "downloads": -1, "filename": "django-kindeditor-0.2.0.tar.gz", "has_sig": false, "md5_digest": "dd61ff21148e08c92a270c3f3d08afb8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 516278, "upload_time": "2019-07-05T12:25:46", "url": "https://files.pythonhosted.org/packages/01/cc/d18be3449e5c33e2ebffe4dcc7e1a0bef575d91f7a50076a96d4376ae492/django-kindeditor-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "848b571b1500e17f6e108416782ec903", "sha256": "48171809d0763c3f20a67d185fe342582533ea695097dcbd41e1fc4653d1461e" }, "downloads": -1, "filename": "django_kindeditor-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "848b571b1500e17f6e108416782ec903", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6", "size": 594219, "upload_time": "2019-08-29T02:04:29", "url": "https://files.pythonhosted.org/packages/25/d1/a3b3599e1305a4ad369e7b42bfcfab9d423d677ac66f991a5ada2181d4a5/django_kindeditor-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "399eff02c003ddbde69676403f5c8626", "sha256": "3208d300e91020b1e48aa613dfefff3fda81f42bf0908fee4d656855dbbbd371" }, "downloads": -1, "filename": "django-kindeditor-0.2.1.tar.gz", "has_sig": false, "md5_digest": "399eff02c003ddbde69676403f5c8626", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 519506, "upload_time": "2019-08-29T02:04:35", "url": "https://files.pythonhosted.org/packages/86/96/f199730667b419dcb6b4b0492f62352c92935c613bedf02922664687829f/django-kindeditor-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "b7e4bdab9e6f1d94e2e2d12ff7456317", "sha256": "e75f8ac1d004b607ad6d1b61833384cd2354c373c91bddd8a1ec6ff0d4136bb1" }, "downloads": -1, "filename": "django_kindeditor-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b7e4bdab9e6f1d94e2e2d12ff7456317", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6", "size": 594223, "upload_time": "2019-08-29T02:49:26", "url": "https://files.pythonhosted.org/packages/4e/aa/338c2ea0463e7d9e71389e9d545cb24c9e5b5df5ea2a1ed5a5a2ae4a6312/django_kindeditor-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "72a3fab6fd3f66958e46088b0eceb8d4", "sha256": "fc4af907896df1a6e3176d5d671d88e9fa1632bad03ee78a6ae608ea047da776" }, "downloads": -1, "filename": "django-kindeditor-0.3.0.tar.gz", "has_sig": false, "md5_digest": "72a3fab6fd3f66958e46088b0eceb8d4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 519468, "upload_time": "2019-08-29T02:49:30", "url": "https://files.pythonhosted.org/packages/4b/27/2d9dafe3ced55e069e870c2abde6987d28377ebf24c268afcad0ffb23e6c/django-kindeditor-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b7e4bdab9e6f1d94e2e2d12ff7456317", "sha256": "e75f8ac1d004b607ad6d1b61833384cd2354c373c91bddd8a1ec6ff0d4136bb1" }, "downloads": -1, "filename": "django_kindeditor-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b7e4bdab9e6f1d94e2e2d12ff7456317", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6", "size": 594223, "upload_time": "2019-08-29T02:49:26", "url": "https://files.pythonhosted.org/packages/4e/aa/338c2ea0463e7d9e71389e9d545cb24c9e5b5df5ea2a1ed5a5a2ae4a6312/django_kindeditor-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "72a3fab6fd3f66958e46088b0eceb8d4", "sha256": "fc4af907896df1a6e3176d5d671d88e9fa1632bad03ee78a6ae608ea047da776" }, "downloads": -1, "filename": "django-kindeditor-0.3.0.tar.gz", "has_sig": false, "md5_digest": "72a3fab6fd3f66958e46088b0eceb8d4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 519468, "upload_time": "2019-08-29T02:49:30", "url": "https://files.pythonhosted.org/packages/4b/27/2d9dafe3ced55e069e870c2abde6987d28377ebf24c268afcad0ffb23e6c/django-kindeditor-0.3.0.tar.gz" } ] }