Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSONEditor library not loaded in form assets #73

Open
NegassaB opened this issue Nov 20, 2022 · 4 comments
Open

JSONEditor library not loaded in form assets #73

NegassaB opened this issue Nov 20, 2022 · 4 comments

Comments

@NegassaB
Copy link

  • django-json-widget version: 1.1.1
  • Django version: 4.1.2
  • Python version: Python 3.10.8
  • Operating System: Fedora 36

Description

Hi all, I pip installed the library and I was trying to use it on my form with a view inherited from django.views.generic.FormView. I've set everything per the documentation but I can not insert data into the JSON field. Taking a glance I saw the error that stated Uncaught ReferenceError: JSONEditor is not defined.

@samuelchen
Copy link

same here

django-json-widget version: 1.1.1
Django version: 4.2
Python version: Python 3.11
Operating System: MacOS 14.1.2

@jmrivas86
Copy link
Owner

Can you test that with the new version please?

@sebastianovide
Copy link

sebastianovide commented Sep 21, 2024

Same here. I see an error in the browser console complaining about not finding JSONEditor. The HTML is missing all in imports. Something wrong in my project ? (it is a newly created empty project) . it works well in the admin pages

django-json-widget 2.0.1
Django 5.1.1
Python 3.12.6

@stevepepple
Copy link

python manage.py collectstatic seems to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants