Monday, October 26, 2020

Re: Restarting servers in development

That's exactly what I was looking for. Thanks for your help. 



Thanks and Regards,
Abhishek Choudhury
Ph. no: +91 7903717967

On Mon, 26 Oct, 2020, 10:52 PM Andréas Kühne, <andreas.kuhne@hypercode.se> wrote:
If you are running in production, make sure that you use something like https://docs.djangoproject.com/en/3.1/ref/contrib/staticfiles/#manifeststaticfilesstorage for handling the css and js files. This will solve the problem automatically for you be adding a MD5 hash to the url of the file, which is updated every time you update the file.

Regards,

Andréas


Den mån 26 okt. 2020 kl 18:05 skrev Abhishek Choudhury <choudhuryabhishek76@gmail.com>:
Thanks a lot for the information. Will definitely try. 



Thanks and Regards,
Abhishek Choudhury
Ph. no: +91 7903717967

On Mon, 26 Oct, 2020, 10:26 PM Akinfolarin Stephen, <akinfolarinstephen8@gmail.com> wrote:
The reason why it is so is because of the browser caching capabilities when the browser see that you are trying to visit a page you visited previously it will load it from the cache if you want it to display the current content press CTRL F5 and you will your newly added content

On Mon, Oct 26, 2020, 17:51 Abhishek Choudhury <choudhuryabhishek76@gmail.com> wrote:
I have been working in Django from quite a long time, but every now and then I face the same issue. 
Why is it like whenever I change the CSS/ JS on the pages, it takes some time or restarting of servers to actually take effect. Can we improve this functionality? I am really passionate about Django. 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9ef394d2-651b-4e60-802a-715845a04572n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFujGLzA1704MD_AegzTnkyUhkXTmtSw3WLjEef%3DsXPVQ640Fg%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2B3kJUZaHGewe%2B89qdZ234r07fgAZ8phNQyK7yg8O_xP5wCYNg%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK4qSCczUA1kbPX0kda5P5vWO6R3B8%2B%3DDha_y4YSL%2B-mMf8rOw%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2B3kJUaBg101ioAPbPdPoO%3DFULWBukuCrKMtewn663pL9ukJCQ%40mail.gmail.com.

No comments:

Post a Comment