Flask using same styling on different flask projects
See original GitHub issueExpected Behavior
When running another flask project, the styling should be it’s own, not the project’s that’s been run 1 time before.
# Paste a minimal example that causes the problem.
I run this repo: https://github.com/delivey/xevis using flask run
. (repo doesn’t matter, but i’ve only encountered this bug with styling which uses CSS)
I go to the website, do something on it, etc.
I close the website by pressing CTRL+C
in the terminal.
I close said terminal window.
I open another terminal window on which I run this project: https://github.com/delivey/schoolvid19 (again, repo doesn’t matter) I get some weird styling which is clearly not of this project, but the one I ran before, although images and text are of the current project.
Actual Behavior
I get styling from the project I ran before, but the text and images from the project I’m currently running.
Paste the full traceback if there was an exception.
Environment
- Python version: 3.8.3
- Flask version: 1.1.2
- Werkzeug version: 0.16.0
How to fix
It is possible to fix this error, simply by hitting CTRL+SHIFT+R, which reloads the browser cache, but getting this bug fixed would be nice
Images
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
After further discussion, we’ve opened pallets/werkzeug#1882 to try to reduce confusion stemming from Flask’s current behavior.
@delivey, glad those references were helpful. In general, it is helpful to us to know where new users are having trouble, though in the future, please try asking in other places like StackOverflow before opening up a new bug. 😃