To do periodic tasks you can use celery[1]. I believe that on windows works fine.
[1] http://celery.readthedocs.org/en/latest/userguide/periodic-tasks.html On Sun, Jan 18, 2015 at 9:24 PM, Mike Dewhirst <mi...@dewhirst.com.au> wrote: > On 19/01/2015 8:54 AM, sarfaraz ahmed wrote: > >> Hello All, >> >> I am trying to use django_crontab to run repetitive task. I want to >> insert records to database on a particular time. Also, I am in process >> of learning django hence I m trying to reach every aspect of django. >> >> The issue i am facing i m able to configure django_crontab but its not >> able to find cron.py. I am using windows 7 and i believe it must be >> something else for windows >> > > There is no cron/crontab on Windows. You need a Linux operating system for > crontab and for testing django-crontab. > > You could install a Linux machine on Windows using Virtualbox or use some > other VM hosting solution. Or repurpose an old piece of hardware you might > have floating about. > > If you want to go into production on Windows you will have to manually > schedule the jobs you want. There may be utilities out there which will let > you interface with the Windows scheduling system. > > >> CRONJOBS = [ >> ('*/5 * * * *', 'dms.Drop_Slot_Management.cron.my_scheduled_job') >> ] >> >> dms is my project directory. >> >> When I run the command manage.py crontab add it gives error saying "The >> system cannot find the path specified." >> >> I am using Windows. >> >> Please help.. >> >> Regards, >> Sarfaraz Ahmed >> >> -- >> 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 >> <mailto:django-users+unsubscr...@googlegroups.com>. >> To post to this group, send email to django-users@googlegroups.com >> <mailto:django-users@googlegroups.com>. >> Visit this group at http://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/9ad0f430- >> 458f-4113-b6be-2d61ab3ec447%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/9ad0f430- >> 458f-4113-b6be-2d61ab3ec447%40googlegroups.com?utm_medium= >> email&utm_source=footer>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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 http://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/54BC40B5.7070704%40dewhirst.com.au. > > For more options, visit https://groups.google.com/d/optout. > -- 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 http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGjPPH%3Dkk4Nf%3DMELq-0ONFk%2Bi-JWvpbmg4D-91-Ye2yJYCQxJQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.