python manage.py crontab add, Unknow Command Error

1.9k Views Asked by At

I am trying to configure django-crontab by following this article, I have done all the setting but when I am trying to add cron job by the following command, I am not able to add the job.

Django Version: 1.8.1 django-crontab: 0.7.1

Command Used:

python manage.py crontab add

ERROR MESSAGE:

Unknown command: 'crontab'
Type 'manage.py help' for usage.
2

There are 2 best solutions below

0
On

Check your pip packages and INSTALLED_APPS. In my project I had typed django_cron instead of django_crontab. django_cron is a different package than the instructions you linked to.

1
On

Are you using a windows or linux? Because the above works only on linux.