4
3 Comments

Django: schedule tasks

Hey all, I am building a portfolio project where I would like to update my DB periodically (fetcha data from an API).
I have read around that Celery Beat could be the solution. Is it the easiest/quickest way? I do not have a huge experience with Django and do not want to spend a lot of time on a portfolio project.
Can you recommend any resource to start with?

Thanks all in advance!

  1. 1

    I found django_q to be the easiest solution. No need for RabbitMQ, Redis or anything like that. Everything is taken care in django. I'm sure this is not a good solution for high traffic sites, but for your applications I think it is the best.

    https://django-q.readthedocs.io/en/latest/configure.html#orm

    1. 2

      Thanks! I ended up using Django version of AP scheduler https://pypi.org/project/django-apscheduler/

      It was verysimple to set-up and suits my use case perfectly.

      1. 2

        Nice, haven't seen this one. Will check it out.

Trending on Indie Hackers
Passed $7k 💵 in a month with my boring directory of job boards 33 comments Reaching $100k MRR Organically in 12 months 29 comments 87.7% of entrepreneurs struggle with at least one mental health issue 14 comments How to Secure #1 on Product Hunt: DO’s and DON'Ts / Experience from PitchBob – AI Pitch Deck Generator & Founders Co-Pilot 11 comments Competing with a substitute? 📌 Here are 4 ad examples you can use [from TOP to BOTTOM of funnel] 10 comments Are you wondering how to gain subscribers to a founder's X account from scratch? 9 comments