Write cron business logic as a Python class and let this app do the rest! It enables Django projects to schedule cron tasks, tracks their success / failures, manages contention (via a cache) etc. Basically takes care of all the boring work for you :-)
File ".../lib/python3.4/site-packages/django_cron/backends/lock/file.py", line 20, in lock
f = open(lock_name, 'w+', 0)
ValueError: can't have unbuffered text I/O
For python3, should change line 20 to f = open(lock_name, 'wb+', 0) and line 37 to f.write(bytearray(str(os.getpid()), 'utf-8'))
File ".../lib/python3.4/site-packages/django_cron/backends/lock/file.py", line 20, in lock f = open(lock_name, 'w+', 0) ValueError: can't have unbuffered text I/O
For python3, should change line 20 to f = open(lock_name, 'wb+', 0) and line 37 to f.write(bytearray(str(os.getpid()), 'utf-8'))