Title
w

warmwaffles

09/24/2021, 9:57 PM
Anyone here use prefect tasks with your django environment? Just wondering how that is going to play nice since there is some song and dance you have to do to get scripts to work with django
Just need to make sure when a task is run that
django.setup()
was called prior
k

Kevin Kho

09/25/2021, 1:45 AM
I haven’t touched Django myself but it sounds like you can do this in a flow level state handler that would run before any of the tasks begin
State Handler docs if ever it helps.