0
I am learning Django and I noticed that the static files take time to load, example; I have a css file that defines the style of the home, I change the font color and update the page and nothing happens, after 2 minutes the font color changes. This is normal in Django?
Very difficult to answer without seeing the code because it depends a lot on what your application is doing, for example, if you are only displaying an html to the user this is not normal, however let’s assume that you were creating a Learning machine API, Django would need to load your entire template and then display the page with the changed font. The important thing is that you check the logs on your terminal when you finish making a change and check whether the delay is plausible based on what is being displayed to you.
– Filipe Gonçalves
I am not using any API, just loading a simple page. In the terminal, appears this:
[16/Jul/2019 12:40:29] "GET /static/css/styles.css HTTP/1.1" 304 0
appears in the color blue.– Eudson Durães