question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v1.1.0 seems to be trying to use incorrect static files

See original GitHub issue
  • django-json-widget version: v1.1.0
  • Django version: 3.1
  • Python version: 3.7
  • Operating System: Linux

Description

Just upgrade to Django v3.1 and with it, to django-json-version 1.1.0. After I run collectstatic, I get the following two files under my statics directory

  • dist/jsoneditor.min.css
  • dist/jsoneditor.min.js

which seems to be the same as version v1.0.1.

The problem is that when running the server, the page fails to load. Looking at the browser console, I can see it is erroring out trying to find dist/jsoneditor.css and dist/jsoneditor.js (see how it is not the .min. version)

image

What I Did

I didn’t do anything different, so unless something changed in the way Django 3.1 works, this may be a problem with the new v1.1.0 version

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
StevenMapescommented, Feb 17, 2021
1reaction
dkarchmercommented, Feb 6, 2021

Would be nice to add the optional (not so optional with this bug) settings to the README:

JSON_EDITOR_JS = 'https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/9.1.9/jsoneditor.min.js'
JSON_EDITOR_CSS = 'https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/9.1.9/jsoneditor.min.css'
Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting build error with v1.1.0 (Android) · Issue #315 - GitHub
With the release of v1.1.0, I am getting below mentioned error when building my react native android app A problem occurred configuring project ......
Read more >
Express-js can't GET my static files, why? - Stack Overflow
First things first: If you base the paths of your files and directories on the cwd (current working directory), things should work as...
Read more >
Configuring IIS 7 to handle static files through a Virtual Path ...
I have implemented a Virtual Path Provider (VPP) and in general it works. I am using IIS 7. What doesn't work is its...
Read more >
Troubleshooting issues with the EB CLI - AWS Elastic Beanstalk
This topic lists common error messages encountered when using the EB CLI and possible solutions. If you encounter an error message not shown ......
Read more >
Clang linking error MacOS Big Sur | Apple Developer Forums
Below a verbose screenshot of my build error message. Looks like it cannot link the c++ std library? I have already tried to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found