Hi,
just one thought - if the update is not much time-consuming, you can
write your view which allways parses the data and then cache the view
for 30 seconds. That way if nobody looks at your page, you won't do
useless work in the background.
See https://docs.djangoproject.com/en/dev/topics/cache/
Thanks guys,
That was really helpful, have a nice day
--
Mohamed Sayed Ghoneim
On Fri, Aug 5, 2011 at 4:37 AM, wrote:
> I am out of office right now and will get back to you when I return. If you
> don't hear from me, my assistant should contact you shortly. Check out this
> massage chair tha
If you want to run a server-side script every 30 seconds, look into
Cron, or Django-Celery. If you want to refresh a webpage every 30
seconds, use Javascript.
On Aug 4, 1:12 am, Mohamed Ghoneim wrote:
> Hey guys,
>
> I am new to djnago and I have heard a lot about its powerful capabilities,
> so
use management commands for the cron jobs. "cd /var/www/project_directory &&
python manage.py custom_management_command"
https://docs.djangoproject.com/en/dev/howto/custom-management-commands/
--
web developer
http://www.emreyilmaz.me
--
You received this message because you are subscribed to
t 04, 2011 6:43 AM
To: django-users@googlegroups.com
Subject: Re: Run an application periodically on django
If you are on Linux machine, you can use cron jobs to schedule the jobs.
When I faced such a problem what I did was, I created a view to update
my site with a secret Url. I have schedu
On Thu, 2011-08-04 at 13:43 +0300, Praveen Krishna R wrote:
> On djcelery, I think you need to configure RabbitMQ or something to
> work with!? correct me Kenneth, if I'm wrong.
yes
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to th
*If you are on Linux machine, you can use cron jobs to schedule the jobs.*
*
*
*When I faced such a problem what I did was, I created a view to update my
site with a secret Url. I have scheduled a cron job to call this url. So
when the view gets called (with "curl" command I'm correct), the site ge
On Thu, 2011-08-04 at 08:12 +0300, Mohamed Ghoneim wrote:
> My problem is how can I schedule this this app to run every 30
> seconds? and can I do this on a hosting website?
djcelery or cron should do the trick
--
You received this message because you are subscribed to the Google Groups
"Django
Hey guys,
I am new to djnago and I have heard a lot about its powerful capabilities,
so I preferred it over other web frameworks.
My problem is I have a webpage that its content should be updated
automatically every 30 seconds as I build an app that gets data from another
web page
and parse it an
9 matches
Mail list logo