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

js, css 404 not found #4170

Open
dsin opened this issue Sep 17, 2023 · 1 comment
Open

js, css 404 not found #4170

dsin opened this issue Sep 17, 2023 · 1 comment

Comments

@dsin
Copy link

dsin commented Sep 17, 2023

Issue Summary

I followed this Getting Started Manual https://docs.oscarcommerce.com/en/latest/internals/getting_started.html and I got http://localhost:8000/static/oscar/* not found on website ( Example: http://localhost:8000/static/oscar/js/bootstrap4/bootstrap.bundle.min.js net::ERR_ABORTED 404 (Not Found))

Steps to Reproduce

  1. Follow steps on https://docs.oscarcommerce.com/en/latest/internals/getting_started.html
  2. run manage.py collectstatic
  3. I noticed that there is no more static dir in the repository. There is only static_src ( https://github.com/django-oscar/django-oscar/tree/master/src/oscar/static_src ). Not sure whether this is related.
  4. I even tried ./manage.py oscar_fork_statics written on https://docs.oscarcommerce.com/en/latest/howto/how_to_handle_statics.html, but it returns error
    FileNotFoundError: [Errno 2] No such file or directory: '/Users/XXX/my-project/env/src/django-oscar/src/oscar/static'
@samar-hassan
Copy link
Contributor

Hi @dsin ,
I also followed the manual just now and didn't get any 404 errors while fetching http://localhost:8000/static/oscar/js/bootstrap4/bootstrap.bundle.min.js. Can you please recheck if you missed any step in the manual? Maybe try following the manual from the start again. Thanks

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

2 participants