Hi everyone!

I am somewhat of a Django beginner and I can't seem to find an easy
solution to what I need to do anywhere.

I have a web scraping code I wish to run in the background automatically
(once) after the server is up and running. I use Docker to fire up the DB
and the web server itself but can't seem to be able to configure it to also
fire up the management command I configured that runs the scraping code (I
guess using Docker for that is either beyond my current knowledge or is
just not possible without using specialised tools like cron, which I don't
fully understand).

Is there any way to do something like this in Django itself, without
resorting to "ready" function? (I did that at first but it stops the server
from running until the code completes and also runs it at least twice)

Best,
Bartosz

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOjbnAWtCMWRck45hgZQqeaY-U86iEmiGs%2Btpq617V81_%2B6hkQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to