Answer the question
In order to leave comments, you need to log in
Django and dev server: why are some file changes not being picked up by the server?
I delve into python.
On the local machine, via manage.py runserver It's
quite enough to study, but sometimes there is a problem of the absence of changes in the behavior of the pages, regardless of what I ruled there in the files.
Usually this was solved either by restarting the server (it helps, but not always), or by opening the page in private mode (it almost always helps).
But now I am faced with such a situation that both of these methods turned out to be non-working.
I tried to change the js file in static, but it didn't work. I used those two methods - there is no result either.
Then I deleted this file completely - there is still no result. Miracles, some, right?
After that, I tried to remove the line from the template that connects this js script - the result immediately made itself felt. I return the line back - everything is the same as before. The file is not even on the server, but it "works".
What's the trouble?
Answer the question
In order to leave comments, you need to log in
Open the developer panel in the browser and in the "Network" tab, disable the cache ("Disable cache").
When the console is open, the static will not be cached by the browser.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question