Closed breisfeld closed 2 years ago
https://github.com/2ik/django-editorjs-fields#image-uploads
# urls.py
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
...
path('editorjs/', include('django_editorjs_fields.urls')),
...
]
Thank you for the advice. Although, I am not interested in enabling image uploads, I did make the changes you recommended. Unfortunately, I still received the same error.
can you upload your project to github? if not, please see an example at the moment I can't say exactly what the error is
Thank you for the reply. I found my error: I had neglected to include a {{ form.media }}
variable in my html template.
I am very glad that everything worked out for you!
Hi, I am a newcomer to Django.
I have installed
django-editorjs-fields
and added aEditorJsTextField()
to a couple of my models. I have not included any plugins.When trying to add an instance of a model through the admin interface, I am getting the following exception:
I have included
django_editorjs_fields
in theINSTALLED_APPS
.I am using
django v4.04
anddjango-editorjs-fields v0.2.6
.Thank you for your help.