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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for django_editormd-0.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4014c6301c679fe1c304c2cdf2454f813717be1ec768bbf68edbdd8b4b3d831f |
|
MD5 | 6310816c1b5e479ba820cee0f82c33f5 |
|
BLAKE2b-256 | 46b4122cf4a5cbbbd8487e3db98e261f6a8862547e60d209a60b781021e7266f |