Forums

How can I run celery beat and worker for Django website on PythonAnywhere

Hello. I have a django website installed on pythonanywhere and the project is a webscraping project requiring redis server and running celery beat and worker to do the scraping. Is there a way I can run these commands after installing in my vrtual environment?

I don't think you'll be able to run that on PythonAnywhere, at least in a free account. Free accounts can only access sites on our whitelist, so you won't be able to scrape anything useful. We also don't support running Redis servers -- you would need to get a paid account and then use an external Redis server, for example from Redis labs. And probably the same for the Celery setup.