Closed GoogleCodeExporter closed 9 years ago
I think that I should summarise my problem again:
1. Create a new project and add django_cron.autodiscover() to your urls.py
2. Run manage syncdb
3. I've got an error:
/var/lib/python-support/python2.6/MySQLdb/__init__.py:34: DeprecationWarning:
the
sets module is deprecated
from sets import ImmutableSet
Error: No module named cronapp.errors
Original comment by zhuxiyu...@googlemail.com
on 19 Oct 2009 at 11:56
BTW, the apache error log:
[Wed Oct 21 09:22:08 2009] [error] [client 127.0.0.1] mod_mime_magic: invalid
type 0
in mconvert().
[Wed Oct 21 09:22:08 2009] [error] [client 127.0.0.1] mod_mime_magic: invalid
type 0
in mconvert().
[Wed Oct 21 09:22:14 2009] [error]
/var/lib/python-support/python2.6/MySQLdb/__init__.py:34: DeprecationWarning:
the
sets module is deprecated
[Wed Oct 21 09:22:14 2009] [error] from sets import ImmutableSet
[Wed Oct 21 09:22:16 2009] [error] [client 127.0.0.1] mod_mime_magic: invalid
type 0
in mconvert().
[Wed Oct 21 09:22:16 2009] [error] [client 127.0.0.1] mod_mime_magic: invalid
type 0
in mconvert().
Original comment by zhuxiyu...@googlemail.com
on 21 Oct 2009 at 8:36
It looks like you may have renamed the app from django_cron to cronapp. I'm not
sure
if you can do that
Original comment by Jim.mixt...@gmail.com
on 27 Oct 2009 at 4:40
It seems like that refactoring is not the issue. The cron worked once or twice
previously but not any more. Now I've no longer have any errors but the cron
just
doesn't work.
BTW I have a technical question here: Why the cron has to be so sophisticated?
I have
written a very simple one. Could you please have a quick look and tell me why
it is a
bad idea? many thanks!
from threading import Timer
import time
t = 10
def cronjob():
def job():
# do something
job()
Timer(t, cronjob).start()
cronjob()
Original comment by zhuxiyu...@googlemail.com
on 28 Oct 2009 at 12:18
addressed via email and in the wiki
Original comment by Jim.mixt...@gmail.com
on 26 Feb 2010 at 1:03
Original issue reported on code.google.com by
zhuxiyu...@googlemail.com
on 19 Oct 2009 at 10:53