Thanks for posting that! We hadn't heard of Django Background Tasks, and it looks like an awesome solution for this kind of thing. We'll take a closer look and perhaps add it to the help page, with some detailed instructions.
Anyway, yes, you do need to have something running the process_tasks
management command in order for it to work. I'd suggest that you set it up as an always-on task (on the "Tasks" page) instead of running it in a console, though. This is the PythonAnywhere equivalent of the suggestion they make in the docs saying "use a grown-up program like supervisord to handle this for you" -- always-on tasks are very similar to supervisord
in the way they work.
The command to use in the always-on task setup will need to do all of the stuff that you do in a console to run it, separated by &&
. So, for example:
workon myvirtualenv && cd ~/mysite/ && python manage.py process_tasks
...where you'll need to replace myvirtualenv
and mysite
with the actual names of the virtualenv and the directory where your manage.py
lives.