-
Notifications
You must be signed in to change notification settings - Fork 6
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
No css at the web page #1
Comments
Hey I can help with the CSS. |
Thanks @Shubhainder. If you can have a look at it then perfect. Maybe you can find an issue in the code. So far, I haven't had anyone with this issue. Could you please check the page source in your browser and tell me what HTML code you have in line 32 (should be between and . Then you can try replacing line 32 in the head.html (located in the templates folder) with this: Let me know once you've tried it. |
After some additional investigation I found the error in the debug Firefox console: |
So basically:
Something in the way how you generate the page in python is not setting the proper mime types. Unfortunately I'm not a Python guru so can't say what is wrong with it. Hope this helps to fix it. |
If this does not work either then there must be a problem with your python code try reviewing it again |
@mracko, yeah I saw this possible solution and already tried it out. Unfortunately it did not help. |
Strange... Let's try one last thing. See if you can run this little Flask WebApp with a Bootstrap CSS - https://github.com/doomspork/flask_example Download it a run app.py. Then load localhost:5000 in your browser. Let me know if it works with CSS. This is just to confirm that there is in fact something wrong with my code. |
Hm.... |
Seems that Flask is having troubles getting local CSS files in general. Try changing the lines 29 to 31 in the head.html file located in the templates folder to this:
What I've done is that I've changed the html to load the CSS from this repo instead loading it locally from the static folder. See if it works. |
It gets a different problem now when fetching CSS remotely: But ultimately all of this comes down to those css files not being css, but plain text. |
I thought we might be able to trick Flask this way. Unfortunately, it didn't work. Since both Flask apps (MSFS Landing Inspector and the Flask Example) couldn't load local CSS files I suspect something is wrong with the way Flask handles CSS files on your PC. I'll do some more research. Maybe I'll find something that will help. Additionally, I'm planning on releasing a compiled EXE this week. Hopefully, this will fix your issue. |
Okay sure, I'll be waiting. Thanks! |
Hi @mracko,
|
Hi Martin,
First of all, thanks a lot for putting this idea to real world! I'm sure this was very, very desired by many people.
I just got a problem displaying the results. The script is running just fine, but the web page seems to lack all the css.
Please see how it looks for me. I tried desktop and mobile browser - the result is the same.
Could you have a look at it please?
The text was updated successfully, but these errors were encountered: