On Mon, Apr 1, 2019 at 11:12 PM Swetank Subham Roy
<swtnk.sbh...@gmail.com> wrote:
>
> Hello folks,
> I have created a hosted a django web app on apache2 using mod_wsgi, the 
> content should automatically refresh everyday. But it is not getting 
> refreshed automatically. I need to manually restart or reload the apache in 
> order to make the changes reflect. I don't want to set cron to restart apache 
> every single day.
>
> Kindly help me out.

What do you have that would make the content automatically refresh
every day? When I need something like this I do this:

<script type="text/javascript">
    window.setTimeout(function () {
        window.location.reload(1);
    }, 60000); // refresh after 60 seconds.
</script>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACwCsY5k42W7M7as0LUR%2BYpHp36f9daGatKeXvVSHuXkUqoy8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to