# django-summernote
**Repository Path**: SuperDian/django-summernote
## Basic Information
- **Project Name**: django-summernote
- **Description**: Simply integrate Summernote editor with Django project.
- **Primary Language**: JavaScript
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2016-06-13
- **Last Updated**: 2020-12-20
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
django-summernote
=================
[](https://travis-ci.org/summernote/django-summernote)
[](https://codecov.io/gh/summernote/django-summernote)
[](https://pypi.python.org/pypi/django-summernote)
[Summernote](https://github.com/summernote/summernote) is a simple WYSIWYG editor.
`django-summernote` allows you to embed Summernote into Django very handy. Support admin mixins and widgets.

SETUP
-----
1. Install `django-summernote` to your python environment.
pip install django-summernote
2. Add `django_summernote` to `INSTALLED_APP` in `settings.py`.
INSTALLED_APPS += ('django_summernote', )
3. Add `django_summernote.urls` to `urls.py`.
urlpatterns = [
...
url(r'^summernote/', include('django_summernote.urls')),
...
]
4. Be sure to set proper `MEDIA_URL` for attachments.
-
5. Run database migration for preparing attachment model.
python manage.py migrate
USAGE
-----
In `admin.py`,
from django_summernote.admin import SummernoteModelAdmin
# Apply summernote to all TextField in model.
class SomeModelAdmin(SummernoteModelAdmin): # instead of ModelAdmin
...
Or, in `forms`,
from django_summernote.widgets import SummernoteWidget, SummernoteInplaceWidget
# Apply summernote to specific fields.
class SomeForm(forms.Form):
foo = forms.CharField(widget=SummernoteWidget()) # instead of forms.Textarea
# If you don't like