>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
```
## Settings
You can use the following settings in `settings.py`.
- EDITORMD_UPLOAD_TO
set your upload path
- EDITORMD_WATERMARK
default is false, if set True, you should set `EDITORMD_WATERMARK_TEXT='some string'`
- EDITORMD_UPLOAD_SUFFIX
If you use `django-qiniu-storage`, maybe you will use watermark suffix.
Metadata
Release files for django-editormd 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_editormd-0.3.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for django_editormd-0.3.0-py2.py3-none-any.whl |
Release files / django_editormd-0.3.0-py2.py3-none-any.whl
| Download URL | django_editormd-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 1.7 MB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1144d01e4ae2a9285044748f69e42f2f00ee584f2dc94cf06b8ef75ef173ce47
|
|
BLAKE2b-256 checksum How to use checksums |
46df3706dec9fab59e406e60b925e0c11ff0cad81c099a6c28a774c77a35d2bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-editormd 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.