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

Fancytree icon not loading in Django project #1086

Closed
mahdian-organization opened this issue Dec 20, 2021 · 2 comments
Closed

Fancytree icon not loading in Django project #1086

mahdian-organization opened this issue Dec 20, 2021 · 2 comments
Labels
stale Flagged by stalebot

Comments

@mahdian-organization
Copy link

Hi,
When I import fancytree in the Django project, the fancytree icons do not load and I get 404 error.

This is my code to import fancytree into html page:
<link rel="stylesheet" type="text/css" href="{% static 'css/skin-win8/ui.fancytree.css' %}">

This is my error image

Can anyone help me?
Thanks

@silverstrangetech
Copy link

silverstrangetech commented Dec 21, 2021

I'm not familiar with Django at all, but I notice you're getting a 404 and the generated url is '/static/css/skin-win8/ui.fancytree.css'. The 404 means it's not finding that css file at that location.

So standard missing file troubleshooting. Is there actually a 'ui.fancytree.css' file in '/static/css/skin-win8/' when you browse to that folder on your desktop or console window? Your path also looks strange to me. Shouldn't it be more like 'jquery.fancytree/dist/skin-win8/ui.fancytree.css'? There's no css folder in the root of this repo.

If you are using some kind of build system (such as webpack) did you run the appropriate command to generate the static files?

If the file '/static/css/skin-win8/ui.fancytree.css' exists when you browse to it using your desktop or console window, have you confirmed that the static folder is being served by Apache or NGINX or whatever you're using? To check, try accessing some other file you've placed in the 'static' folder with your web browser (http://127.0.0.1:8000/static/test/file/name/here.png). If it loads normally, than the problem shouldn't be with your web server config.

Hope that helps.

@stale
Copy link

stale bot commented Mar 30, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Flagged by stalebot label Mar 30, 2022
@stale stale bot closed this as completed Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Flagged by stalebot
Projects
None yet
Development

No branches or pull requests

2 participants