Skip to content
Advertisement

crontab django Erorr

I’m trying to start simple crontab-django job scheduled (os is Ubuntu 20.04):

this is the myapp/cron.py file as mentioned in the documentation cron.py

JavaScript

and this is the settings i used frm the documentation

JavaScript

i keep getting this error

JavaScript

even i tried to add python manage.py crontab add again and show and it appears python manage.py crontab add

JavaScript

python manage.py crontab show

JavaScript

its only work for one time if i run like this:

JavaScript

Advertisement

Answer

It should already be added to your system crontab. Check it with crontab -l in the terminal.

Edit: It seems because you have a space in your directory name, try to rename python projects to python-projects and rerun the add command.

Advertisement