Search code examples
djangosummernote

Use django-summernote without using form?


I am making a small site with Django. For some reasons, I am not using Django forms to render the forms in templates. I am doing the "traditional" way, by defining <input>, <textarea>, <select> etc in the template html files. I want to use django-summernote to enable rich text, especially image uploading, in a textarea. Is it possible to using Use django-summernote without using django.form? If so, how? I have added:

in settings.py:

MEDIA_ROOT = '/home/name/project/media/'
MEDIA_URL = '/media/'

in urls.py:

from django.conf.urls import include
urlpatterns = [
    ...
    url(r'^summernote/', include('django_summernote.urls')),
    ...
]

Solution

  • As you are not using django forms, there is no need to use django-summernote, simply follow the instructions at the getting started page to integrate it with your template.