CodeConnoisseur74 / gloss

1 stars 0 forks source link

Flash message does not work , showing errors in console in dev tools #56

Closed CodeConnoisseur74 closed 2 months ago

CodeConnoisseur74 commented 2 months ago

Describe the bug A clear and concise description of what the bug is.

Flash pop shows up but does not does not disappear on it's own. It seems to be hard coded. Upon further inspection in Chrome Dev Tools, numerous static errors showing, indicating that the app.js file has not been loaded by the server:

pp4-static-error

The console in vscode is indicating that the STAIC_ROOT has not been set in settings.py.

pp4-apps-py-explanation

This indicated that perhaps the DEBUG was still set to false which it was. Once DEBUG was set back to true, the static root error was fixed.

However, the console error in dev tools still indicated that the app.js file was not loaded.

After consulting with the VScode AI extension, Codium. the solution was found :

pp4-js-style-error-solution

After using the JS eventListener, no further errors were detected.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Steps to solution:

Additional context Add any other context about the problem here.

CodeConnoisseur74 commented 2 months ago

cofirmed merge