Thread
#prefect-community
    warmwaffles

    warmwaffles

    1 year ago
    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
    Kevin Kho

    Kevin Kho

    1 year ago
    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.