django-editormd package helps integrate editor.md with Django.
Project description
# Django Editor md
>django-editormd package helps integrate [editor.md](https://github.com/pandao/editor.md) with Django.
## Getting started
Install the package:
`pip install django-editormd`
Add `editormd` to INSTALLED_APPS in `settings.py`.
## Usage
1. Usage in models
```python
from editormd.models import EditorMdField
class Page(models.Model):
content_editormd1 = EditorMdField()
```
2. OR Usage in forms
```python
from editormd.fields import EditorMdFormField
class PageForm(forms.ModelForm):
content_editormd1 = EditorMdFormField()
content_editormd2 = EditorMdFormField()
content_editormd3 = EditorMdFormField()
class Meta:
model = Page
fields = '__all__'
@admin.register(Page)
class PageAdmin(admin.ModelAdmin):
form = PageForm
```
>django-editormd package helps integrate [editor.md](https://github.com/pandao/editor.md) with Django.
## Getting started
Install the package:
`pip install django-editormd`
Add `editormd` to INSTALLED_APPS in `settings.py`.
## Usage
1. Usage in models
```python
from editormd.models import EditorMdField
class Page(models.Model):
content_editormd1 = EditorMdField()
```
2. OR Usage in forms
```python
from editormd.fields import EditorMdFormField
class PageForm(forms.ModelForm):
content_editormd1 = EditorMdFormField()
content_editormd2 = EditorMdFormField()
content_editormd3 = EditorMdFormField()
class Meta:
model = Page
fields = '__all__'
@admin.register(Page)
class PageAdmin(admin.ModelAdmin):
form = PageForm
```
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
django-editormd-0.1.1.tar.gz
(1.5 MB
view hashes)
Built Distributions
Close
Hashes for django_editormd-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4122d8cd3e0b9783f718181788702a09aa8e06528ff3aa7ee34d17ab015b5d5e |
|
MD5 | bb699eedf695bc2af3a913e230e8ce59 |
|
BLAKE2b-256 | 84c4dcd31b508ca1698785af16d107e557ca6ac1469c9e76ffb626c2c145398c |
Close
Hashes for django_editormd-0.1.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c8b2a766a3b62c2663fefb19c7d78d62a238720637b06ef0dc0d052e0eaf9bb |
|
MD5 | 1b6a94ced8dbd5860613db14de6081a2 |
|
BLAKE2b-256 | 2bd9401080e34391bd4abb6c63e002196481faa5f41eb8525cb4018e0cfe584c |