Re: automatically performing an a task
Hi,
Thanks:)
However, sorry I am a newbie with this stuff. I have gotten some hands
on Django during this project and have taken some understanding of
cron by googling but I am still sort of lost with it.
The problem is that if I fire manage.py script with cron, how do I run
the specific task that I want to run that performs the computaion of
checking the end date and resolving it(involving db operations, and
sending mail to winner etc.)
Lets suppose, I write all this funtionality as a view(e.g.
resolveauction) in view.py and link a uri with this in urls.py (e.g.
(r'^res_aucation/$', resolveauction)). Now how do I fire manage.py
from cron to trigger this uri(e.g. /res_auction/) functionality?
Thanks again and looking forward,
Irum
On May 23, 1:18 am, Daniel Roseman <dan...@roseman.org.uk> wrote:
> On May 22, 4:17 pm, irum <irumrauf...@gmail.com> wrote:
>
>
>
> > Hi,
>
> > I am working on a sample auction site with Django for my course
> > project. I have a requirement that system automatically resolves an
> > auction after the end date of the auction and elect the winner.
>
> > I am not sure how to implement this functionality and which feature of
> > Django should be used to automatically perform a task when the auction
> > reaches its end date.
>
> > My search till now takes me to Django-corn (http://code.google.com/p/
> > django-cron/wiki/Install). Should I use this or am I following a wrong
> > thread for solution to my problem?
>
> > Any prompt help and insights regarding this would be much appreciated
> > as I am nearing my deadline this week:)
>
> > Thanks in advance,
> > Irum
>
> No need for any external projects. Just have a normal cron job which
> fires a custom manage.py script to carry out the task.
> --
> DR.
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home